You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/utils: Move av_stream_get_end_pts() to mux_utils.c
It is only to be used with muxers. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -29,6 +29,14 @@
|
|||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "mux.h"
|
#include "mux.h"
|
||||||
|
|
||||||
|
int64_t av_stream_get_end_pts(const AVStream *st)
|
||||||
|
{
|
||||||
|
if (cffstream(st)->priv_pts) {
|
||||||
|
return cffstream(st)->priv_pts->val;
|
||||||
|
} else
|
||||||
|
return AV_NOPTS_VALUE;
|
||||||
|
}
|
||||||
|
|
||||||
int avformat_query_codec(const AVOutputFormat *ofmt, enum AVCodecID codec_id,
|
int avformat_query_codec(const AVOutputFormat *ofmt, enum AVCodecID codec_id,
|
||||||
int std_compliance)
|
int std_compliance)
|
||||||
{
|
{
|
||||||
|
@@ -62,14 +62,6 @@ int ff_unlock_avformat(void)
|
|||||||
return ff_mutex_unlock(&avformat_mutex) ? -1 : 0;
|
return ff_mutex_unlock(&avformat_mutex) ? -1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int64_t av_stream_get_end_pts(const AVStream *st)
|
|
||||||
{
|
|
||||||
if (cffstream(st)->priv_pts) {
|
|
||||||
return cffstream(st)->priv_pts->val;
|
|
||||||
} else
|
|
||||||
return AV_NOPTS_VALUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct AVCodecParserContext *av_stream_get_parser(const AVStream *st)
|
struct AVCodecParserContext *av_stream_get_parser(const AVStream *st)
|
||||||
{
|
{
|
||||||
return cffstream(st)->parser;
|
return cffstream(st)->parser;
|
||||||
|
Reference in New Issue
Block a user