projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad6b2c1
)
mpeg4videodec: reset time_base.num to 0 when detecting time_base.den=0
author
Aurelien Jacobs
<aurel@gnuage.org>
Mon, 3 Jan 2011 23:33:20 +0000
(23:33 +0000)
committer
Aurelien Jacobs
<aurel@gnuage.org>
Mon, 3 Jan 2011 23:33:20 +0000
(23:33 +0000)
to avoid leaving time_base in a broken/inconsistent state
fix issue2471
Originally committed as revision 26207 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpeg4videodec.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpeg4videodec.c
b/libavcodec/mpeg4videodec.c
index b339f7812fbe811eee792d0e3c2ea620c2339667..c0d9f8fe3c37d149f785559db80329a06af87854 100644
(file)
--- a/
libavcodec/mpeg4videodec.c
+++ b/
libavcodec/mpeg4videodec.c
@@
-1575,6
+1575,7
@@
static int decode_vol_header(MpegEncContext *s, GetBitContext *gb){
s->avctx->time_base.den = get_bits(gb, 16);
if(!s->avctx->time_base.den){
av_log(s->avctx, AV_LOG_ERROR, "time_base.den==0\n");
+ s->avctx->time_base.num = 0;
return -1;
}