@@ -289,12 +289,11 @@ void VideoDecoder::scanFileAndUpdateMetadataAndIndex() {
289
289
}
290
290
291
291
// 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 ) {
295
294
throw std::runtime_error (
296
295
" Could not seek file to pts=0: " +
297
- getFFMPEGErrorStringFromErrorCode (ffmepgStatus ));
296
+ getFFMPEGErrorStringFromErrorCode (status ));
298
297
}
299
298
300
299
// Sort all frames by their pts.
@@ -923,17 +922,17 @@ void VideoDecoder::maybeSeekToBeforeDesiredPts() {
923
922
desiredPts = streamInfo.keyFrames [desiredKeyFrameIndex].pts ;
924
923
}
925
924
926
- int ffmepgStatus = avformat_seek_file (
925
+ int status = avformat_seek_file (
927
926
formatContext_.get (),
928
927
streamInfo.streamIndex ,
929
928
INT64_MIN,
930
929
desiredPts,
931
930
desiredPts,
932
931
0 );
933
- if (ffmepgStatus < 0 ) {
932
+ if (status < 0 ) {
934
933
throw std::runtime_error (
935
934
" Could not seek file to pts=" + std::to_string (desiredPts) + " : " +
936
- getFFMPEGErrorStringFromErrorCode (ffmepgStatus ));
935
+ getFFMPEGErrorStringFromErrorCode (status ));
937
936
}
938
937
decodeStats_.numFlushes ++;
939
938
avcodec_flush_buffers (streamInfo.codecContext .get ());
0 commit comments