Skip to content

Commit

Permalink
libavformat/utils.c: silence final MythTV warning
Browse files Browse the repository at this point in the history
No functional change, but AVStream.codec was removed in FFmpeg 5.0.

This should enable it to compile with FFmpeg 5.0, since it will then be
not compiled.
  • Loading branch information
ulmus-scott authored and bennettpeter committed Jul 1, 2022
1 parent 943dd4d commit 50c21a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mythtv/external/FFmpeg/libavformat/utils.c
Expand Up @@ -5952,12 +5952,16 @@ void av_remove_stream(AVFormatContext *s, int id, int remove_ts) {

av_log(NULL, AV_LOG_DEBUG, "av_remove_stream 0x%x\n", id);

#if FF_API_LAVF_AVCTX
FF_DISABLE_DEPRECATION_WARNINGS
/* close codec context */
codec_ctx = s->streams[i]->codec;
if (codec_ctx->codec) {
avcodec_close(codec_ctx);
av_free(codec_ctx);
}
FF_ENABLE_DEPRECATION_WARNINGS
#endif
#if 0
/* make sure format context is not using the codec context */
if (&s->streams[i] == s->cur_st) {
Expand Down

0 comments on commit 50c21a9

Please sign in to comment.