Skip to content

Commit

Permalink
check for AV_CODEC_FLAG2_SHOW_ALL
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Jul 24, 2023
1 parent a75bfcd commit 583a0db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions toxav/codecs/h264/codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,12 @@ VCSession *vc_new_h264(Logger *log, ToxAV *av, uint32_t friend_number, toxav_vid
}

// vc->h264_decoder->flags |= AV_CODEC_FLAG_OUTPUT_CORRUPT;

#ifdef AV_CODEC_FLAG2_SHOW_ALL
vc->h264_decoder->flags |= AV_CODEC_FLAG2_SHOW_ALL;
#else
LOGGER_API_WARNING(av->tox, "!! AV_CODEC_FLAG2_SHOW_ALL not defined by ffmpeg version !!");
#endif
// vc->h264_decoder->flags2 |= AV_CODEC_FLAG2_FAST;
// vc->h264_decoder->flags |= AV_CODEC_FLAG_TRUNCATED;
// vc->h264_decoder->flags2 |= AV_CODEC_FLAG2_CHUNKS;
Expand Down

0 comments on commit 583a0db

Please sign in to comment.