Skip to content

Commit 07a811f

Browse files
author
Clement Champetier
committed
VideoProperties: fixed gopSize property in case of image
* Images are considered as video streams with one frame by ffmpeg. * We cannot compute a gop size as a distance between two I frames. * So we set the gop size by iteration.
1 parent 77212f4 commit 07a811f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/properties/VideoProperties.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ void VideoProperties::analyseGopStructure(IProgress& progress)
509509
positionOfLastKeyFrame = count;
510510
}
511511

512-
++count;
512+
_gopSize = ++count;
513513
}
514514
}
515515
av_free_packet(&pkt);

0 commit comments

Comments
 (0)