Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/jpeg.c')
-rw-r--r--libavformat/jpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/jpeg.c b/libavformat/jpeg.c
index 6a19db6d67..e86edfecde 100644
--- a/libavformat/jpeg.c
+++ b/libavformat/jpeg.c
@@ -170,6 +170,8 @@ static int jpeg_read_header(AVFormatContext *s1, AVFormatParameters *ap)
av_free(s);
return -ENOMEM;
}
+ avcodec_get_context_defaults(&st->codec);
+
s1->streams[0] = st;
s->img_number = 0;