aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h263.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-01-03 23:21:52 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-01-03 23:21:52 +0000
commit70ac76c0eb13d74d2001e83d7803f3dc0299f86a (patch)
tree03790d6c8e2996583535dd39ea5d1b5129766e94 /libavcodec/h263.c
parent001bcd29556b32c1afd686c03f6bdd65dd0e9a36 (diff)
downloadffmpeg-70ac76c0eb13d74d2001e83d7803f3dc0299f86a.tar.gz
mpeg4 header encoding bugfix
Originally committed as revision 1392 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263.c')
-rw-r--r--libavcodec/h263.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c
index c1bfbaf64d..bc21e0cd86 100644
--- a/libavcodec/h263.c
+++ b/libavcodec/h263.c
@@ -1727,11 +1727,9 @@ void mpeg4_encode_picture_header(MpegEncContext * s, int picture_number)
int time_div, time_mod;
if(s->pict_type==I_TYPE){
- if(picture_number - s->last_vo_picture_number >= 300 || picture_number==0){
+ if(!(s->flags&CODEC_FLAG_GLOBAL_HEADER)){
mpeg4_encode_visual_object_header(s);
mpeg4_encode_vol_header(s, 0, 0);
-
- s->last_vo_picture_number= picture_number;
}
mpeg4_encode_gop_header(s);
}