Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
FFmpegController: Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Apr 24, 2022
1 parent bd455c1 commit 3482f55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iina/FFmpegController.m
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ - (int)getPeeksForFile:(NSString *)file
}

// Find the decoder for the video stream
AVCodec *pCodec = avcodec_find_decoder(pVideoStream->codecpar->codec_id);
const AVCodec *pCodec = avcodec_find_decoder(pVideoStream->codecpar->codec_id);
CHECK_NOTNULL(pCodec, @"Unsupported codec")

// Open codec
Expand Down Expand Up @@ -393,7 +393,7 @@ + (NSDictionary *)getColorSpaceMetadataForFile:(nonnull NSString *)file

if (!metadata) {
// Find the decoder for the video stream
AVCodec *pCodec = avcodec_find_decoder(pVideoStream->codecpar->codec_id);
const AVCodec *pCodec = avcodec_find_decoder(pVideoStream->codecpar->codec_id);
if (!pCodec) return NULL;

// Open codec
Expand Down

0 comments on commit 3482f55

Please sign in to comment.