summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorLoren Merritt <lorenm@u.washington.edu>2004-09-16 17:36:39 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-09-16 17:36:39 +0000
commit1140139fe288386c38f71a89c7c753583fc4e7ff (patch)
treea9dba3579e10086dd7b3835dc971e65250215efb /libavcodec/mpegvideo.c
parente1e98dbd570b28b579ba33b490b1c83b0888d15a (diff)
10l (scene change pict_type was wrong after coded_frame fix) patch by (Loren Merritt <lorenm at u dot washington dot edu>)
Originally committed as revision 3471 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 93b0431bdf..d050cb9c0e 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -4845,7 +4845,9 @@ static void encode_picture(MpegEncContext *s, int picture_number)
}
//FIXME var duplication
+ s->current_picture_ptr->key_frame=
s->current_picture.key_frame= s->pict_type == I_TYPE; //FIXME pic_ptr
+ s->current_picture_ptr->pict_type=
s->current_picture.pict_type= s->pict_type;
if(s->current_picture.key_frame)