[FFmpeg-cvslog] ffmpeg: add note about why has_b_frame is copied and when it can be removed

Michael Niedermayer git at videolan.org
Sun Jun 1 17:36:57 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jun  1 15:32:50 2014 +0200| [a87685d8e8c13b6339412f99f08a419681e5ced5] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a87685d8e8c13b6339412f99f08a419681e5ced5
---

 ffmpeg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 2252280..caa6cff 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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] ++;



More information about the ffmpeg-cvslog mailing list