1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

avdevice/avfoundation: remove first_audio_pts and first_pts

Because these two member of AVFContext not be used.

Signed-off-by: Steven Liu <liuqi05@kuaishou.com>
This commit is contained in:
Steven Liu
2021-07-19 20:03:25 +08:00
committed by Thilo Borgmann
parent 6f20685228
commit b67263e0e8

View File

@@ -85,8 +85,6 @@ typedef struct
int frames_captured; int frames_captured;
int audio_frames_captured; int audio_frames_captured;
int64_t first_pts;
int64_t first_audio_pts;
pthread_mutex_t frame_lock; pthread_mutex_t frame_lock;
id avf_delegate; id avf_delegate;
id avf_audio_delegate; id avf_audio_delegate;
@@ -766,8 +764,6 @@ static int avf_read_header(AVFormatContext *s)
NSArray *devices_muxed = [AVCaptureDevice devicesWithMediaType:AVMediaTypeMuxed]; NSArray *devices_muxed = [AVCaptureDevice devicesWithMediaType:AVMediaTypeMuxed];
ctx->num_video_devices = [devices count] + [devices_muxed count]; ctx->num_video_devices = [devices count] + [devices_muxed count];
ctx->first_pts = av_gettime();
ctx->first_audio_pts = av_gettime();
pthread_mutex_init(&ctx->frame_lock, NULL); pthread_mutex_init(&ctx->frame_lock, NULL);