Skip to content

Commit ca31359

Browse files
authored
FFmpegWriter: Missed 1 rename to video_codec_ctx
1 parent adab668 commit ca31359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FFmpegWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ void FFmpegWriter::flush_encoders() {
845845
if (info.has_video && video_codec_ctx && AV_GET_CODEC_TYPE(video_st) == AVMEDIA_TYPE_VIDEO && (oc->oformat->flags & AVFMT_RAWPICTURE) && AV_FIND_DECODER_CODEC_ID(video_st) == AV_CODEC_ID_RAWVIDEO)
846846
return;
847847
#else
848-
if (info.has_video && video_codec && AV_GET_CODEC_TYPE(video_st) == AVMEDIA_TYPE_VIDEO && AV_FIND_DECODER_CODEC_ID(video_st) == AV_CODEC_ID_RAWVIDEO)
848+
if (info.has_video && video_codec_ctx && AV_GET_CODEC_TYPE(video_st) == AVMEDIA_TYPE_VIDEO && AV_FIND_DECODER_CODEC_ID(video_st) == AV_CODEC_ID_RAWVIDEO)
849849
return;
850850
#endif
851851

0 commit comments

Comments
 (0)