@@ -289,12 +289,11 @@ void VideoDecoder::scanFileAndUpdateMetadataAndIndex() {
289289 }
290290
291291 // Reset the seek-cursor back to the beginning.
292- int ffmepgStatus =
293- avformat_seek_file (formatContext_.get (), 0 , INT64_MIN, 0 , 0 , 0 );
294- if (ffmepgStatus < 0 ) {
292+ int status = avformat_seek_file (formatContext_.get (), 0 , INT64_MIN, 0 , 0 , 0 );
293+ if (status < 0 ) {
295294 throw std::runtime_error (
296295 " Could not seek file to pts=0: " +
297- getFFMPEGErrorStringFromErrorCode (ffmepgStatus ));
296+ getFFMPEGErrorStringFromErrorCode (status ));
298297 }
299298
300299 // Sort all frames by their pts.
@@ -923,17 +922,17 @@ void VideoDecoder::maybeSeekToBeforeDesiredPts() {
923922 desiredPts = streamInfo.keyFrames [desiredKeyFrameIndex].pts ;
924923 }
925924
926- int ffmepgStatus = avformat_seek_file (
925+ int status = avformat_seek_file (
927926 formatContext_.get (),
928927 streamInfo.streamIndex ,
929928 INT64_MIN,
930929 desiredPts,
931930 desiredPts,
932931 0 );
933- if (ffmepgStatus < 0 ) {
932+ if (status < 0 ) {
934933 throw std::runtime_error (
935934 " Could not seek file to pts=" + std::to_string (desiredPts) + " : " +
936- getFFMPEGErrorStringFromErrorCode (ffmepgStatus ));
935+ getFFMPEGErrorStringFromErrorCode (status ));
937936 }
938937 decodeStats_.numFlushes ++;
939938 avcodec_flush_buffers (streamInfo.codecContext .get ());
0 commit comments