aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h263.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-09-14 17:18:26 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-09-14 17:18:26 +0000
commita172cae62e34b9cd2ce5200c8e8196f5c4454644 (patch)
treefd5d24010e3a86ed2a8cf9b4ddbb64ba869f3065 /libavcodec/h263.c
parent1e7bfebe7f90a3a861552c5c1c579e183f73560a (diff)
downloadffmpeg-a172cae62e34b9cd2ce5200c8e8196f5c4454644.tar.gz
interlaced b frames fix
Originally committed as revision 946 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263.c')
-rw-r--r--libavcodec/h263.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c
index 26758a6640..5ccb343181 100644
--- a/libavcodec/h263.c
+++ b/libavcodec/h263.c
@@ -2798,10 +2798,12 @@ int h263_decode_mb(MpegEncContext *s,
s->mcsel=0; // ... true gmc blocks
if(s->mb_x==0){
- s->last_mv[0][0][0]=
- s->last_mv[0][0][1]=
- s->last_mv[1][0][0]=
- s->last_mv[1][0][1]= 0;
+ for(i=0; i<2; i++){
+ s->last_mv[i][0][0]=
+ s->last_mv[i][0][1]=
+ s->last_mv[i][1][0]=
+ s->last_mv[i][1][1]= 0;
+ }
}
/* if we skipped it in the future P Frame than skip it now too */
@@ -4190,10 +4192,11 @@ int mpeg4_decode_picture_header(MpegEncContext * s)
}else
s->b_code=1;
#if 0
-printf("qp:%d fc:%d bc:%d type:%s size:%d pro:%d alt:%d qpel:%d part:%d resync:%d\n",
+printf("qp:%d fc:%d bc:%d type:%s size:%d pro:%d alt:%d top:%d qpel:%d part:%d resync:%d\n",
s->qscale, s->f_code, s->b_code,
s->pict_type == I_TYPE ? "I" : (s->pict_type == P_TYPE ? "P" : (s->pict_type == B_TYPE ? "B" : "S")),
- s->gb.size,s->progressive_sequence, s->alternate_scan, s->quarter_sample, s->data_partitioning, s->resync_marker);
+ s->gb.size,s->progressive_sequence, s->alternate_scan, s->top_field_first,
+ s->quarter_sample, s->data_partitioning, s->resync_marker);
#endif
if(!s->scalability){
if (s->shape!=RECT_SHAPE && s->pict_type!=I_TYPE) {