summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorJuanjo <pulento@users.sourceforge.net>2002-05-11 23:42:16 +0000
committerJuanjo <pulento@users.sourceforge.net>2002-05-11 23:42:16 +0000
commit9cd3766f6e715b15275240490da39090bfee55e6 (patch)
tree02a66ca2c1490a582531fe1740d9491b183e14a4 /libavcodec/mpegvideo.c
parenta5dc85efb83a891070eb5f7a8f24834539fdf5df (diff)
- 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 Originally committed as revision 484 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 19deb2da99..d4b22138b5 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -793,7 +793,9 @@ int MPV_encode_picture(AVCodecContext *avctx,
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;