git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
805b570
)
smjpegdec: set nb_frames for video stream
author
Paul B Mahol
<onemda@gmail.com>
Fri, 2 Nov 2012 16:21:17 +0000
(16:21 +0000)
committer
Paul B Mahol
<onemda@gmail.com>
Fri, 2 Nov 2012 16:32:51 +0000
(16:32 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavformat/smjpegdec.c
patch
|
blob
|
history
diff --git
a/libavformat/smjpegdec.c
b/libavformat/smjpegdec.c
index
0cd993f
..
ceb29c9
100644
(file)
--- a/
libavformat/smjpegdec.c
+++ b/
libavformat/smjpegdec.c
@@
-106,10
+106,10
@@
static int smjpeg_read_header(AVFormatContext *s)
hlength = avio_rb32(pb);
if (hlength < 12)
return AVERROR_INVALIDDATA;
- avio_skip(pb, 4); // number of frames
vst = avformat_new_stream(s, 0);
if (!vst)
return AVERROR(ENOMEM);
+ vst->nb_frames = avio_rb32(pb);
vst->codec->codec_type = AVMEDIA_TYPE_VIDEO;
vst->codec->width = avio_rb16(pb);
vst->codec->height = avio_rb16(pb);