diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-29 14:25:17 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-29 14:25:24 +0100 |
commit | d1bbd304bf608c9ca5fe747a8ee317e4c4e0ecbe (patch) | |
tree | cb34d55aa421569fd67f0819d56b21aeac348075 | |
parent | 3c8085dc4250a98405eb64b3765f4ceb8d177c00 (diff) | |
parent | f81c37e40fe3236d54da12aef9cdba48ba70ec31 (diff) | |
download | ffmpeg-streaming-d1bbd304bf608c9ca5fe747a8ee317e4c4e0ecbe.zip ffmpeg-streaming-d1bbd304bf608c9ca5fe747a8ee317e4c4e0ecbe.tar.gz |
Merge commit 'f81c37e40fe3236d54da12aef9cdba48ba70ec31'
* commit 'f81c37e40fe3236d54da12aef9cdba48ba70ec31':
vf_delogo: fix an uninitialized read.
h264: remove obsolete comment.
mpegvideo: remove some unused variables from Picture.
utvideoenc/v410enc: do not set AVFrame.reference.
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/h264.c | 1 | ||||
-rw-r--r-- | libavcodec/motion_est.c | 2 | ||||
-rw-r--r-- | libavcodec/mpegvideo.h | 5 | ||||
-rw-r--r-- | libavcodec/utvideoenc.c | 1 | ||||
-rw-r--r-- | libavcodec/v410enc.c | 1 |
5 files changed, 0 insertions, 10 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index a3f8db2..3d759cc 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1462,7 +1462,6 @@ static void decode_postinit(H264Context *h, int setup_finished) cur->f.repeat_pict = 1; break; case SEI_PIC_STRUCT_FRAME_DOUBLING: - // Force progressive here, doubling interlaced frame is a bad idea. cur->f.repeat_pict = 2; break; case SEI_PIC_STRUCT_FRAME_TRIPLING: diff --git a/libavcodec/motion_est.c b/libavcodec/motion_est.c index 2c16c9a..ce61cab 100644 --- a/libavcodec/motion_est.c +++ b/libavcodec/motion_est.c @@ -1092,7 +1092,6 @@ void ff_estimate_p_frame_motion(MpegEncContext * s, vard = s->dsp.sse[0](NULL, pix, ppix, s->linesize, 16); pic->mc_mb_var[s->mb_stride * mb_y + mb_x] = (vard+128)>>8; -// pic->mb_cmp_score[s->mb_stride * mb_y + mb_x] = dmin; c->mc_mb_var_sum_temp += (vard+128)>>8; if(mb_type){ @@ -1171,7 +1170,6 @@ void ff_estimate_p_frame_motion(MpegEncContext * s, } } -// pic->mb_cmp_score[s->mb_stride * mb_y + mb_x] = dmin; set_p_mv_tables(s, mx, my, mb_type!=CANDIDATE_MB_TYPE_INTER4V); /* get intra luma score */ diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h index 03f4f9f..8e704a6 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -94,10 +94,6 @@ struct MpegEncContext; typedef struct Picture{ struct AVFrame f; - /** - * halfpel luma planes. - */ - uint8_t *interpolated[3]; int8_t *qscale_table_base; int16_t (*motion_val_base[2])[2]; uint32_t *mb_type_base; @@ -144,7 +140,6 @@ typedef struct Picture{ uint16_t *mb_var; ///< Table for MB variances uint16_t *mc_mb_var; ///< Table for motion compensated MB variances uint8_t *mb_mean; ///< Table for MB luminance - int32_t *mb_cmp_score; ///< Table for MB cmp scores, for mb decision FIXME remove int b_frame_score; /* */ struct MpegEncContext *owner2; ///< pointer to the MpegEncContext that allocated this picture int needs_realloc; ///< Picture needs to be reallocated (eg due to a frame size change) diff --git a/libavcodec/utvideoenc.c b/libavcodec/utvideoenc.c index 7167278..acb25c3 100644 --- a/libavcodec/utvideoenc.c +++ b/libavcodec/utvideoenc.c @@ -594,7 +594,6 @@ static int utvideo_encode_frame(AVCodecContext *avctx, AVPacket *pkt, * At least currently Ut Video is IDR only. * Set flags accordingly. */ - avctx->coded_frame->reference = 0; avctx->coded_frame->key_frame = 1; avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I; diff --git a/libavcodec/v410enc.c b/libavcodec/v410enc.c index 67d8fc9..9661c7c 100644 --- a/libavcodec/v410enc.c +++ b/libavcodec/v410enc.c @@ -54,7 +54,6 @@ static int v410_encode_frame(AVCodecContext *avctx, AVPacket *pkt, return ret; dst = pkt->data; - avctx->coded_frame->reference = 0; avctx->coded_frame->key_frame = 1; avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I; |