avcodec/utils: initialize delay in avcodec_parameters_to_context()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 4 Jun 2016 02:40:28 +0000 (04:40 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 4 Jun 2016 18:46:16 +0000 (20:46 +0200)
Fixes lost codec delayy
Should fix Ticket5509

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/utils.c

index 7b99526..4016583 100644 (file)
@@ -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;