diff mbox series

[FFmpeg-devel] avdevice/avfoundation: remove first_audio_pts and first_pts

Message ID 20210719120325.22390-1-liuqi05@kuaishou.com
State Accepted
Commit b67263e0e88ebb1001552190212159ff7e25cc07
Headers show
Series [FFmpeg-devel] avdevice/avfoundation: remove first_audio_pts and first_pts
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Steven Liu July 19, 2021, 12:03 p.m. UTC
Because these two member of AVFContext not be used.

Signed-off-by: Steven Liu <liuqi05@kuaishou.com>
---
 libavdevice/avfoundation.m | 4 ----
 1 file changed, 4 deletions(-)

Comments

Thilo Borgmann July 19, 2021, 12:12 p.m. UTC | #1
Am 19.07.21 um 14:03 schrieb Steven Liu:
> Because these two member of AVFContext not be used.
> 
> Signed-off-by: Steven Liu <liuqi05@kuaishou.com>
> ---
>  libavdevice/avfoundation.m | 4 ----
>  1 file changed, 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);
>  
> 

Pushed, thanks!

-Thilo
diff mbox series

Patch

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);