lavf: add an API to get output timestamps.
This commit is contained in:
@@ -3285,6 +3285,15 @@ fail:
|
||||
return ret;
|
||||
}
|
||||
|
||||
int av_get_output_timestamp(struct AVFormatContext *s, int stream,
|
||||
int64_t *dts, int64_t *wall)
|
||||
{
|
||||
if (!s->oformat || !s->oformat->get_output_timestamp)
|
||||
return AVERROR(ENOSYS);
|
||||
s->oformat->get_output_timestamp(s, stream, dts, wall);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ff_program_add_stream_index(AVFormatContext *ac, int progid, unsigned int idx)
|
||||
{
|
||||
int i, j;
|
||||
|
||||
Reference in New Issue
Block a user