1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

ffmpeg: add note about why has_b_frame is copied and when it can be removed

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-06-01 15:32:50 +02:00
parent 921d5ae3bc
commit a87685d8e8

View File

@ -1856,7 +1856,7 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output)
ret = avcodec_decode_video2(ist->dec_ctx,
decoded_frame, got_output, pkt);
update_benchmark("decode_video %d.%d", ist->file_index, ist->st->index);
ist->st->codec->has_b_frames = ist->dec_ctx->has_b_frames;
ist->st->codec->has_b_frames = ist->dec_ctx->has_b_frames; //FIXME remove this once all AVParsers set it correctly
if (*got_output || ret<0 || pkt->size)
decode_error_stat[ret<0] ++;