lavc: Add seek_preroll to AVCodecParameters

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2016-03-04 15:51:41 -03:00 committed by Derek Buitenhuis
parent e6053b3b19
commit 3fafde6cbe
2 changed files with 6 additions and 0 deletions

View File

@ -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;
/**

View File

@ -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;
}