aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-12-27 15:10:21 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-12-27 15:10:21 +0000
commit0ccabeeaef77e240f2a44f78271a8914a23e239b (patch)
treefd6d6543d0d2cd6413ef2f62a92013140d0a9b3d /ffplay.c
parent9e99f84f7d4fabbbf224da152eacd8f4a50b7bd3 (diff)
downloadandroid_external_ffmpeg-0ccabeeaef77e240f2a44f78271a8914a23e239b.tar.gz
android_external_ffmpeg-0ccabeeaef77e240f2a44f78271a8914a23e239b.tar.bz2
android_external_ffmpeg-0ccabeeaef77e240f2a44f78271a8914a23e239b.zip
Support filters and decoders that dont support negative linesizes.
This patch is based on work by stefano. Originally committed as revision 26108 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index 9c48e60e6c..e49951b93e 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1616,6 +1616,9 @@ static int input_get_buffer(AVCodecContext *codec, AVFrame *pic)
int i, w, h, stride[4];
unsigned edge;
+ if (codec->codec->capabilities & CODEC_CAP_NEG_LINESIZES)
+ perms |= AV_PERM_NEG_LINESIZES;
+
if(pic->buffer_hints & FF_BUFFER_HINTS_VALID) {
if(pic->buffer_hints & FF_BUFFER_HINTS_READABLE) perms |= AV_PERM_READ;
if(pic->buffer_hints & FF_BUFFER_HINTS_PRESERVE) perms |= AV_PERM_PRESERVE;