[FFmpeg-cvslog] avcodec/utils: initialize delay in avcodec_parameters_to_context()
Michael Niedermayer
git at videolan.org
Sat Jun 4 20:49:08 CEST 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Jun 4 04:40:28 2016 +0200| [d953b2857b5b51ba363163139bf661216e0ee57c] | committer: Michael Niedermayer
avcodec/utils: initialize delay in avcodec_parameters_to_context()
Fixes lost codec delayy
Should fix Ticket5509
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d953b2857b5b51ba363163139bf661216e0ee57c
---
libavcodec/utils.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 7b99526..4016583 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -4157,6 +4157,7 @@ int avcodec_parameters_to_context(AVCodecContext *codec,
codec->sample_rate = par->sample_rate;
codec->block_align = par->block_align;
codec->frame_size = par->frame_size;
+ codec->delay =
codec->initial_padding = par->initial_padding;
codec->seek_preroll = par->seek_preroll;
break;
More information about the ffmpeg-cvslog
mailing list