Skip to content

Commit

Permalink
FFmpegWriter: Missed 1 rename to video_codec_ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Jul 8, 2020
1 parent adab668 commit ca31359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FFmpegWriter.cpp
Expand Up @@ -845,7 +845,7 @@ void FFmpegWriter::flush_encoders() {
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)
return;
#else
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)
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)
return;
#endif

Expand Down

0 comments on commit ca31359

Please sign in to comment.