lavc: Add seek_preroll to AVCodecParameters
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
e6053b3b19
commit
3fafde6cbe
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user