Skip to content

Commit

Permalink
mpegts-mythtv.c: av_mpegts_remove_stream() silence 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 Aug 15, 2022
1 parent 371bdb9 commit 68515f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mythtv/external/FFmpeg/libavformat/mpegts-mythtv.c
Expand Up @@ -113,12 +113,16 @@ static void av_mpegts_remove_stream(AVFormatContext *s, int id) {

av_log(NULL, AV_LOG_DEBUG, "av_mpegts_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 68515f9

Please sign in to comment.