Commit 3fafde6c authored by James Almer's avatar James Almer Committed by Derek Buitenhuis

lavc: Add seek_preroll to AVCodecParameters

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent e6053b3b
......@@ -3904,6 +3904,10 @@ typedef struct AVCodecParameters {
* audio without any trailing padding.
*/
int trailing_padding;
/**
* Audio only. Number of samples to skip after a discontinuity.
*/
int seek_preroll;
} AVCodecParameters;
/**
......
......@@ -3784,6 +3784,7 @@ int avcodec_parameters_from_context(AVCodecParameters *par,
par->sample_rate = codec->sample_rate;
par->block_align = codec->block_align;
par->initial_padding = codec->initial_padding;
par->seek_preroll = codec->seek_preroll;
break;
}
......@@ -3830,6 +3831,7 @@ int avcodec_parameters_to_context(AVCodecContext *codec,
codec->sample_rate = par->sample_rate;
codec->block_align = par->block_align;
codec->initial_padding = par->initial_padding;
codec->seek_preroll = par->seek_preroll;
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment