aboutsummaryrefslogtreecommitdiffstats
path: root/cmdutils.c
diff options
context:
space:
mode:
authorchinshou <chinshou1976@gmail.com>2012-07-20 16:42:29 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-20 16:42:29 +0200
commit55de89e25d1ae1a86d792e1ebecebcad702980f6 (patch)
tree5c62cf8ab79d093ed0b667144e7171f95b0d9b58 /cmdutils.c
parent99c4e91dfa14f1a81f85062eae03a3d04a157817 (diff)
downloadffmpeg-55de89e25d1ae1a86d792e1ebecebcad702980f6.tar.gz
cmdutils/alloc_buffer: fix typo
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 295d95608e..edeab93ed3 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -1227,7 +1227,7 @@ static int alloc_buffer(FrameBuffer **pool, AVCodecContext *s, FrameBuffer **pbu
for (i = 0; i < FF_ARRAY_ELEMS(buf->data); i++) {
const int h_shift = i==0 ? 0 : h_chroma_shift;
const int v_shift = i==0 ? 0 : v_chroma_shift;
- if ((s->flags & CODEC_FLAG_EMU_EDGE) || !buf->linesize[1] || !buf->base[i])
+ if ((s->flags & CODEC_FLAG_EMU_EDGE) || !buf->linesize[i] || !buf->base[i])
buf->data[i] = buf->base[i];
else
buf->data[i] = buf->base[i] +