Commit e446041e authored by Jean-Paul Saman's avatar Jean-Paul Saman

debian/patches/configure-avcodec-version-52-20.patch: forgot subtitles

Lower dependency on avcodec version for subtitles.
parent 9c09d29c
Index: vlc-m2x.git/configure.ac
===================================================================
--- vlc-m2x.git.orig/configure.ac 2010-12-01 12:33:35.169623405 +0100
+++ vlc-m2x.git/configure.ac 2010-12-01 12:33:35.337625748 +0100
--- vlc-m2x.git.orig/configure.ac 2010-12-06 10:13:10.622545497 +0100
+++ vlc-m2x.git/configure.ac 2010-12-06 10:13:10.702545940 +0100
@@ -3577,7 +3577,7 @@
dnl
dnl Pulseaudio module
......@@ -13,8 +13,8 @@ Index: vlc-m2x.git/configure.ac
dnl Portaudio module
Index: vlc-m2x.git/modules/codec/avcodec/avcodec.c
===================================================================
--- vlc-m2x.git.orig/modules/codec/avcodec/avcodec.c 2010-12-01 12:32:22.233620192 +0100
+++ vlc-m2x.git/modules/codec/avcodec/avcodec.c 2010-12-01 12:33:35.337625748 +0100
--- vlc-m2x.git.orig/modules/codec/avcodec/avcodec.c 2010-12-06 10:12:07.870735025 +0100
+++ vlc-m2x.git/modules/codec/avcodec/avcodec.c 2010-12-06 10:35:50.694591421 +0100
@@ -49,8 +49,8 @@
#include "avutil.h"
#include "chroma.h"
......@@ -26,10 +26,36 @@ Index: vlc-m2x.git/modules/codec/avcodec/avcodec.c
#endif
/*****************************************************************************
@@ -313,11 +313,13 @@
i_result = InitAudioDec ( p_dec, p_context, p_codec,
i_codec_id, psz_namecodec );
break;
+#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 52, 25, 0 )
case SPU_ES:
p_dec->pf_decode_sub = DecodeSubtitle;
i_result = InitSubtitleDec( p_dec, p_context, p_codec,
i_codec_id, psz_namecodec );
break;
+#endif
default:
i_result = VLC_EGENERIC;
}
@@ -350,9 +352,11 @@
case VIDEO_ES:
EndVideoDec ( p_dec );
break;
+#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 52, 25, 0 )
case SPU_ES:
EndSubtitleDec( p_dec );
break;
+#endif
}
if( p_sys->p_context )
Index: vlc-m2x.git/modules/codec/avcodec/fourcc.c
===================================================================
--- vlc-m2x.git.orig/modules/codec/avcodec/fourcc.c 2010-12-01 12:50:54.673618908 +0100
+++ vlc-m2x.git/modules/codec/avcodec/fourcc.c 2010-12-01 12:52:14.581659823 +0100
--- vlc-m2x.git.orig/modules/codec/avcodec/fourcc.c 2010-12-06 10:12:07.759256910 +0100
+++ vlc-m2x.git/modules/codec/avcodec/fourcc.c 2010-12-06 10:13:10.702545940 +0100
@@ -364,7 +364,9 @@
{ VLC_CODEC_SHORTEN, CODEC_ID_SHORTEN, AUDIO_ES },
......@@ -40,3 +66,29 @@ Index: vlc-m2x.git/modules/codec/avcodec/fourcc.c
{ VLC_CODEC_MLP, CODEC_ID_MLP, AUDIO_ES },
Index: vlc-m2x.git/modules/codec/avcodec/avcodec.h
===================================================================
--- vlc-m2x.git.orig/modules/codec/avcodec/avcodec.h 2010-12-06 10:38:20.030539398 +0100
+++ vlc-m2x.git/modules/codec/avcodec/avcodec.h 2010-12-06 10:38:33.554531031 +0100
@@ -31,7 +31,9 @@
picture_t * DecodeVideo ( decoder_t *, block_t ** );
aout_buffer_t * DecodeAudio( decoder_t *, block_t ** );
+#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 52, 25, 0 )
subpicture_t *DecodeSubtitle( decoder_t *p_dec, block_t ** );
+#endif
/* Video encoder module */
int OpenEncoder ( vlc_object_t * );
@@ -58,9 +60,11 @@
void EndAudioDec( decoder_t *p_dec );
/* Subtitle Decoder */
+#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 52, 25, 0 )
int InitSubtitleDec( decoder_t *p_dec, AVCodecContext *p_context,
AVCodec *p_codec, int i_codec_id, const char *psz_namecodec );
void EndSubtitleDec( decoder_t *p_dec );
+#endif
/* Initialize decoder */
int ffmpeg_OpenCodec( decoder_t *p_dec );
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment