OSDN Git Service

rv34: export qp table
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 15 Mar 2013 02:19:54 +0000 (03:19 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 15 Mar 2013 02:19:54 +0000 (03:19 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/rv34.c

index 1ddac8e..baca996 100644 (file)
@@ -1584,11 +1584,13 @@ static int finish_frame(AVCodecContext *avctx, AVFrame *pict)
         if ((ret = av_frame_ref(pict, &s->current_picture_ptr->f)) < 0)
             return ret;
         ff_print_debug_info(s, s->current_picture_ptr, pict);
+        av_frame_set_qp_table(pict, av_buffer_ref(s->current_picture_ptr->qscale_table_buf), s->mb_stride, FF_QSCALE_TYPE_MPEG1);
         got_picture = 1;
     } else if (s->last_picture_ptr != NULL) {
         if ((ret = av_frame_ref(pict, &s->last_picture_ptr->f)) < 0)
             return ret;
         ff_print_debug_info(s, s->last_picture_ptr, pict);
+        av_frame_set_qp_table(pict, av_buffer_ref(s->last_picture_ptr->qscale_table_buf), s->mb_stride, FF_QSCALE_TYPE_MPEG1);
         got_picture = 1;
     }