Mercurial > mplayer.hg
changeset 30748:923f55aafcf6
Reuse the keyframe flag from x264 instead of trying to derive it on our own.
author | reimar |
---|---|
date | Sun, 28 Feb 2010 07:52:34 +0000 |
parents | 7ac542b9ca24 |
children | 88cd611f49dd |
files | libmpcodecs/ve_x264.c |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ve_x264.c Sun Feb 28 07:45:23 2010 +0000 +++ b/libmpcodecs/ve_x264.c Sun Feb 28 07:52:34 2010 +0000 @@ -258,10 +258,7 @@ return -1; } if(i_size>0) { - int keyframe = (pic_out.i_type == X264_TYPE_IDR) || - (pic_out.i_type == X264_TYPE_I - && param.i_frame_reference == 1 - && !param.i_bframe); + int keyframe = pic_out.b_keyframe; memcpy(mod->mux->buffer, nal->p_payload, i_size); muxer_write_chunk(mod->mux, i_size, keyframe?AVIIF_KEYFRAME:0, MP_NOPTS_VALUE, MP_NOPTS_VALUE); }