summaryrefslogtreecommitdiff
path: root/libavdevice/avfoundation.m
diff options
context:
space:
mode:
authorSteven Liu <liuqi05@kuaishou.com>2021-07-19 20:03:25 +0800
committerThilo Borgmann <thilo.borgmann@mail.de>2021-07-19 14:10:06 +0200
commitb67263e0e88ebb1001552190212159ff7e25cc07 (patch)
tree2b0bea09c6047ca019451e457fa82b5f5c513092 /libavdevice/avfoundation.m
parent6f206852289ee8997bef6a43a88252834d2d3e02 (diff)
downloadffmpeg-b67263e0e88ebb1001552190212159ff7e25cc07.tar.gz
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>
Diffstat (limited to 'libavdevice/avfoundation.m')
-rw-r--r--libavdevice/avfoundation.m4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m
index bad3760159..5b4dea826c 100644
--- a/libavdevice/avfoundation.m
+++ b/libavdevice/avfoundation.m
@@ -85,8 +85,6 @@ typedef struct
int frames_captured;
int audio_frames_captured;
- int64_t first_pts;
- int64_t first_audio_pts;
pthread_mutex_t frame_lock;
id avf_delegate;
id avf_audio_delegate;
@@ -766,8 +764,6 @@ static int avf_read_header(AVFormatContext *s)
NSArray *devices_muxed = [AVCaptureDevice devicesWithMediaType:AVMediaTypeMuxed];
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);