Merge commit 'c9be276f8b040e7d441a77f774afe94b6f137be6' into release/1.1
* commit 'c9be276f8b040e7d441a77f774afe94b6f137be6':
mpegvideo: set reference/pict_type on generated reference frames
Conflicts:
libavcodec/mpegvideo.c
See: 532b93b516
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1468,7 +1468,11 @@ int ff_MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
|
|||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
s->last_picture_ptr = &s->picture[i];
|
s->last_picture_ptr = &s->picture[i];
|
||||||
|
|
||||||
s->last_picture_ptr->f.key_frame = 0;
|
s->last_picture_ptr->f.key_frame = 0;
|
||||||
|
s->last_picture_ptr->f.reference = 3;
|
||||||
|
s->last_picture_ptr->f.pict_type = AV_PICTURE_TYPE_P;
|
||||||
|
|
||||||
if (ff_alloc_picture(s, s->last_picture_ptr, 0) < 0) {
|
if (ff_alloc_picture(s, s->last_picture_ptr, 0) < 0) {
|
||||||
s->last_picture_ptr = NULL;
|
s->last_picture_ptr = NULL;
|
||||||
return -1;
|
return -1;
|
||||||
@@ -1494,6 +1498,9 @@ int ff_MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
|
|||||||
}
|
}
|
||||||
s->next_picture_ptr = &s->picture[i];
|
s->next_picture_ptr = &s->picture[i];
|
||||||
s->next_picture_ptr->f.key_frame = 0;
|
s->next_picture_ptr->f.key_frame = 0;
|
||||||
|
s->next_picture_ptr->f.reference = 3;
|
||||||
|
s->next_picture_ptr->f.pict_type = AV_PICTURE_TYPE_P;
|
||||||
|
|
||||||
if (ff_alloc_picture(s, s->next_picture_ptr, 0) < 0) {
|
if (ff_alloc_picture(s, s->next_picture_ptr, 0) < 0) {
|
||||||
s->next_picture_ptr = NULL;
|
s->next_picture_ptr = NULL;
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user