Browse Source

avformat/webmdashenc: fix uninitialized variable

Fixes -Wsometimes-uninitialized from
http://fate.ffmpeg.org/report.cgi?time=20150820031140&slot=arm64-darwin-clang-apple-5.1

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n2.8
Ganesh Ajjanagadde Michael Niedermayer 10 years ago
parent
commit
b772847eb0
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      libavformat/webmdashenc.c

+ 3
- 3
libavformat/webmdashenc.c View File

@@ -392,10 +392,10 @@ static int write_adaptation_set(AVFormatContext *s, int as_index)
if (w->is_live) { if (w->is_live) {
AVDictionaryEntry *filename = AVDictionaryEntry *filename =
av_dict_get(s->streams[as->streams[i]]->metadata, FILENAME, NULL, 0); av_dict_get(s->streams[as->streams[i]]->metadata, FILENAME, NULL, 0);
if (!filename ||
(ret = parse_filename(filename->value, &representation_id, NULL, NULL))) {
if (!filename)
return AVERROR(EINVAL);
if (ret = parse_filename(filename->value, &representation_id, NULL, NULL))
return ret; return ret;
}
} else { } else {
representation_id = av_asprintf("%d", w->representation_id++); representation_id = av_asprintf("%d", w->representation_id++);
if (!representation_id) return AVERROR(ENOMEM); if (!representation_id) return AVERROR(ENOMEM);


Loading…
Cancel
Save