Use new version of fix_deprecated_pix_fmt

This commit is contained in:
Isaac Connor 2021-02-18 13:46:00 -05:00
parent 6d8a7a7a4c
commit a4d8ef5d8f
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ bool VideoStore::open() {
Error("Could not initialize ctx parameters");
return false;
}
fix_deprecated_pix_fmt(video_out_ctx);
video_out_ctx->pix_fmt = fix_deprecated_pix_fmt(video_out_ctx->pix_fmt);
if ( oc->oformat->flags & AVFMT_GLOBALHEADER ) {
#if LIBAVCODEC_VERSION_CHECK(56, 35, 0, 64, 0)
video_out_ctx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;