mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
lavf: make av_set_pts_info private.
It's supposed to be called only from (de)muxers.
This commit is contained in:
@ -25,6 +25,7 @@
|
||||
*/
|
||||
|
||||
#include "avformat.h"
|
||||
#include "internal.h"
|
||||
|
||||
#define SEQ_FRAME_SIZE 6144
|
||||
#define SEQ_FRAME_W 256
|
||||
@ -210,7 +211,7 @@ static int seq_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
||||
if (!st)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
av_set_pts_info(st, 32, 1, SEQ_FRAME_RATE);
|
||||
avpriv_set_pts_info(st, 32, 1, SEQ_FRAME_RATE);
|
||||
seq->video_stream_index = st->index;
|
||||
st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
|
||||
st->codec->codec_id = CODEC_ID_TIERTEXSEQVIDEO;
|
||||
@ -223,7 +224,7 @@ static int seq_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
||||
if (!st)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
av_set_pts_info(st, 32, 1, SEQ_SAMPLE_RATE);
|
||||
avpriv_set_pts_info(st, 32, 1, SEQ_SAMPLE_RATE);
|
||||
seq->audio_stream_index = st->index;
|
||||
st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||
st->codec->codec_id = CODEC_ID_PCM_S16BE;
|
||||
|
Reference in New Issue
Block a user