diff mpegvideo.c @ 376:ba9c3b8088c0 libavcodec

- pict_type exported to AVCodecContext - Added real_pict_num to AVCodecContext, it represent the number of the previous encoded frame, usefull when coding with B frames. - Warning fix in motion_est.c
author pulento
date Sat, 11 May 2002 23:42:16 +0000
parents 0eca28d16cbd
children fce0a2520551
line wrap: on
line diff
--- a/mpegvideo.c	Thu May 09 05:42:27 2002 +0000
+++ b/mpegvideo.c	Sat May 11 23:42:16 2002 +0000
@@ -793,7 +793,9 @@
         MPV_frame_start(s);
 
         encode_picture(s, s->picture_number);
-        avctx->key_frame = (s->pict_type == I_TYPE);
+        avctx->key_frame   = (s->pict_type == I_TYPE);
+        avctx->pict_type   = s->pict_type;
+        avctx->real_pict_num  = s->picture_number;
         avctx->header_bits = s->header_bits;
         avctx->mv_bits     = s->mv_bits;
         avctx->misc_bits   = s->misc_bits;