updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xvbat / ffmpeg-deprecated-removed-symbols.patch
blob8da12ba5a8368d68c51986059a3b22f0fff1a6a7
1 diff -Naur xvbat-0.9-404001/decoder.c xvbat-0.9-404001-ffmpeg-fix/decoder.c
2 --- xvbat-0.9-404001/decoder.c 2010-12-17 23:04:20.000000000 +0200
3 +++ xvbat-0.9-404001-ffmpeg-fix/decoder.c 2011-06-21 02:40:45.509586181 +0300
4 @@ -26,7 +26,12 @@
5 /* Preconditions */
6 g_return_val_if_fail( dec, -1 );
8 - status = avcodec_decode_video(
9 - dec->codec_context, frame, &complete, buf, size);
11 + AVPacket avpkt;
12 + av_init_packet(&avpkt);
13 + avpkt.data = buf;
14 + avpkt.size = size;
15 + status = avcodec_decode_video2(
16 + dec->codec_context, frame, &complete, &avpkt);
17 return status <= 0 ? status : complete;
20 diff -Naur xvbat-0.9-404001/xvbaplay.c xvbat-0.9-404001-ffmpeg-fix/xvbaplay.c
21 --- xvbat-0.9-404001/xvbaplay.c 2011-02-11 04:06:12.000000000 +0200
22 +++ xvbat-0.9-404001-ffmpeg-fix/xvbaplay.c 2011-06-21 02:57:57.230187841 +0300
23 @@ -425,13 +425,13 @@
25 /*! \todo Only dump format if verbose. */
26 # if 1
27 - dump_format(format_context, 0, path, 0);
28 + av_dump_format(format_context, 0, path, 0);
29 # endif
31 /* Find the first video stream. */
32 video_stream = -1;
33 for (i = 0; i < format_context->nb_streams; ++i)
34 - if (format_context->streams[i]->codec->codec_type == CODEC_TYPE_VIDEO) {
35 + if (format_context->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO) {
36 video_stream = i;
37 break;