changeset 8456:30f2b80242b2 libavcodec

export refs
author michael
date Wed, 24 Dec 2008 18:39:23 +0000
parents aedda304862c
children fa07932f2c89
files h264.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Wed Dec 24 17:38:27 2008 +0000
+++ b/h264.c	Wed Dec 24 18:39:23 2008 +0000
@@ -4041,6 +4041,8 @@
     h->emu_edge_width= (s->flags&CODEC_FLAG_EMU_EDGE) ? 0 : 16;
     h->emu_edge_height= (FRAME_MBAFF || FIELD_PICTURE) ? 0 : h->emu_edge_width;
 
+    s->avctx->refs= h->sps.ref_frame_count;
+
     if(s->avctx->debug&FF_DEBUG_PICT_INFO){
         av_log(h->s.avctx, AV_LOG_DEBUG, "slice:%d %s mb:%d %c%s%s pps:%u frame:%d poc:%d/%d ref:%d/%d qp:%d loop:%d:%d:%d weight:%d%s %s\n",
                h->slice_num,