diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-12-27 18:10:21 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-12-27 18:10:21 +0300 |
commit | 0ccabeeaef77e240f2a44f78271a8914a23e239b (patch) | |
tree | fd6d6543d0d2cd6413ef2f62a92013140d0a9b3d /ffplay.c | |
parent | 9e99f84f7d4fabbbf224da152eacd8f4a50b7bd3 (diff) |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |