diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2009-12-28 10:21:12 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2009-12-28 10:21:12 +0000 |
commit | 874009da120f91d6a074c73ca8cbcb90706bde45 (patch) | |
tree | c6c5ceea511c96cce3c02040c797f9f5a55796b8 /media-video/dvbcut/files/dvbcut-0.5.4-lavc.patch | |
parent | Fix media-libs/libdvdcss dependency, close bug #286667 (diff) | |
download | gentoo-2-874009da120f91d6a074c73ca8cbcb90706bde45.tar.gz gentoo-2-874009da120f91d6a074c73ca8cbcb90706bde45.tar.bz2 gentoo-2-874009da120f91d6a074c73ca8cbcb90706bde45.zip |
old
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'media-video/dvbcut/files/dvbcut-0.5.4-lavc.patch')
-rw-r--r-- | media-video/dvbcut/files/dvbcut-0.5.4-lavc.patch | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/media-video/dvbcut/files/dvbcut-0.5.4-lavc.patch b/media-video/dvbcut/files/dvbcut-0.5.4-lavc.patch deleted file mode 100644 index 2306ad906b9c..000000000000 --- a/media-video/dvbcut/files/dvbcut-0.5.4-lavc.patch +++ /dev/null @@ -1,42 +0,0 @@ -Index: dvbcut-0.5.4/src/avframe.cpp -=================================================================== ---- dvbcut-0.5.4.orig/src/avframe.cpp -+++ dvbcut-0.5.4/src/avframe.cpp -@@ -39,7 +39,7 @@ avframe::avframe(AVFrame *src, AVCodecCo - (u_int8_t*)tobefreed, - ctx->pix_fmt,ctx->width,ctx->height); - -- img_copy((AVPicture *)f, (const AVPicture *) src, -+ av_picture_copy((AVPicture *)f, (const AVPicture *) src, - ctx->pix_fmt, ctx->width, ctx->height); - - f->pict_type = src->pict_type; -Index: dvbcut-0.5.4/src/mpgfile.cpp -=================================================================== ---- dvbcut-0.5.4.orig/src/mpgfile.cpp -+++ dvbcut-0.5.4/src/mpgfile.cpp -@@ -250,7 +250,7 @@ void mpgfile::initaudiocodeccontext(int - - int16_t samples[6*1536]; // must be enough for 6 AC-3 channels --mr - int frame_size=sizeof(samples); -- avcodec_decode_audio(S->avcc,samples,&frame_size,(uint8_t*) sd->getdata(),sd->inbytes()); -+ avcodec_decode_audio2(S->avcc,samples,&frame_size,(uint8_t*) sd->getdata(),sd->inbytes()); - avcodec_close(S->avcc); - } - -Index: dvbcut-0.5.4/src/playaudio.cpp -=================================================================== ---- dvbcut-0.5.4.orig/src/playaudio.cpp -+++ dvbcut-0.5.4/src/playaudio.cpp -@@ -42,9 +42,9 @@ void playaudio(const void *data, uint32_ - - while (len>0) { - int16_t samples[MIN_BUFFER_SAMPLES > avcc->frame_size ? MIN_BUFFER_SAMPLES : avcc->frame_size ]; -- int frame_size; -+ int frame_size = AVCODEC_MAX_AUDIO_FRAME_SIZE;; - -- int bytesDecoded=avcodec_decode_audio(avcc,samples,&frame_size,(uint8_t*)d,len); -+ int bytesDecoded=avcodec_decode_audio2(avcc,samples,&frame_size,(uint8_t*)d,len); - - if (bytesDecoded<0) { - fprintf(stderr,"avcodec_decode_audio returned %d\n",bytesDecoded); |