mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 07:40:00 +08:00
Merge remote-tracking branch 'qatar/master'
* qatar/master: (29 commits) amrwb: remove duplicate arguments from extrapolate_isf(). amrwb: error out early if mode is invalid. h264: change underread for 10bit QPEL to overread. matroska: check buffer size for RM-style byte reordering. vp8: disable mmx functions with sse/sse2 counterparts on x86-64. vp8: change int stride to ptrdiff_t stride. wma: fix invalid buffer size assumptions causing random overreads. Windows Media Audio Lossless decoder rv10/20: Fix slice overflow with checked bitstream reader. h263dec: Disallow width/height changing with frame threads. rv10/20: Fix a buffer overread caused by losing track of the remaining buffer size. rmdec: Honor .RMF tag size rather than assuming 18. g722: Fix the QMF scaling r3d: don't set codec timebase. electronicarts: set timebase for tgv video. electronicarts: parse the framerate for cmv video. ogg: don't set codec timebase electronicarts: don't set codec timebase avs: don't set codec timebase wavpack: Fix an integer overflow ... Conflicts: libavcodec/arm/vp8dsp_init_arm.c libavcodec/fraps.c libavcodec/h264.c libavcodec/mpeg4videodec.c libavcodec/mpegvideo.c libavcodec/msmpeg4.c libavcodec/pnmdec.c libavcodec/qpeg.c libavcodec/rawenc.c libavcodec/ulti.c libavcodec/vcr1.c libavcodec/version.h libavcodec/wmalosslessdec.c libavformat/electronicarts.c libswscale/ppc/yuv2rgb_altivec.c tests/ref/acodec/g722 tests/ref/fate/ea-cmv Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -981,7 +981,7 @@ static int load_input_picture(MpegEncContext *s, AVFrame *pic_arg)
|
||||
if (i < 0)
|
||||
return i;
|
||||
|
||||
pic = (AVFrame *) &s->picture[i];
|
||||
pic = &s->picture[i].f;
|
||||
pic->reference = 3;
|
||||
|
||||
for (i = 0; i < 4; i++) {
|
||||
@ -996,7 +996,7 @@ static int load_input_picture(MpegEncContext *s, AVFrame *pic_arg)
|
||||
if (i < 0)
|
||||
return i;
|
||||
|
||||
pic = (AVFrame *) &s->picture[i];
|
||||
pic = &s->picture[i].f;
|
||||
pic->reference = 3;
|
||||
|
||||
if (ff_alloc_picture(s, (Picture *) pic, 0) < 0) {
|
||||
@ -1252,7 +1252,7 @@ static int select_input_picture(MpegEncContext *s)
|
||||
s->input_picture[0]->f.type == FF_BUFFER_TYPE_INTERNAL);
|
||||
|
||||
s->avctx->release_buffer(s->avctx,
|
||||
(AVFrame *) s->input_picture[0]);
|
||||
&s->input_picture[0]->f);
|
||||
}
|
||||
|
||||
emms_c();
|
||||
@ -1385,13 +1385,13 @@ no_output_pic:
|
||||
/* mark us unused / free shared pic */
|
||||
if (s->reordered_input_picture[0]->f.type == FF_BUFFER_TYPE_INTERNAL)
|
||||
s->avctx->release_buffer(s->avctx,
|
||||
(AVFrame *) s->reordered_input_picture[0]);
|
||||
&s->reordered_input_picture[0]->f);
|
||||
for (i = 0; i < 4; i++)
|
||||
s->reordered_input_picture[0]->f.data[i] = NULL;
|
||||
s->reordered_input_picture[0]->f.type = 0;
|
||||
|
||||
copy_picture_attributes(s, (AVFrame *) pic,
|
||||
(AVFrame *) s->reordered_input_picture[0]);
|
||||
copy_picture_attributes(s, &pic->f,
|
||||
&s->reordered_input_picture[0]->f);
|
||||
|
||||
s->current_picture_ptr = pic;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user