Web lists-archives.com

[MPlayer-dev-eng] [PATCH] Don't depend on FFmpeg internal raw_packet_buffer_remaining_size




Fortunately, FFmpeg's avformat_alloc_context() already sets it,
so there is no need for MPlayer to do it.

This is related to svn r37372 which was a quick hack.

Ingo
Index: libmpcodecs/ad_spdif.c
===================================================================
--- libmpcodecs/ad_spdif.c	(revision 37409)
+++ libmpcodecs/ad_spdif.c	(working copy)
@@ -23,7 +23,6 @@
 #include "ad_internal.h"
 #include "av_helpers.h"
 #include "libavformat/avformat.h"
-#include "libavformat/internal.h"
 #include "libavcodec/avcodec.h"
 #include "libavutil/opt.h"
 
@@ -130,7 +129,6 @@
             break;
         }
     }
-    lavf_ctx->internal->raw_packet_buffer_remaining_size = RAW_PACKET_BUFFER_SIZE;
     if (AVERROR_PATCHWELCOME == lavf_ctx->oformat->write_header(lavf_ctx)) {
         mp_msg(MSGT_DECAUDIO,MSGL_INFO,
                "This codec is not supported by spdifenc.\n");
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng