diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-07-18 12:22:39 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-08-21 22:25:19 +0200 |
commit | 390503bdb49139e83a0cbfd25a31c5fa36db5ca3 (patch) | |
tree | ff1895aa918da92f6f38c76ef68272ff37e1861e /drivers/media/platform/coda.c | |
parent | [media] coda: remove VB2_USERPTR from queue io_modes (diff) | |
download | linux-390503bdb49139e83a0cbfd25a31c5fa36db5ca3.tar.xz linux-390503bdb49139e83a0cbfd25a31c5fa36db5ca3.zip |
[media] coda: use CODA_MAX_FRAME_SIZE everywhere
Without this changing CODA_MAX_FRAME_SIZE to anything other than 0x100000
can break the bitstram handling
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/platform/coda.c')
-rw-r--r-- | drivers/media/platform/coda.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index c25756e7eeaf..79c362bd8383 100644 --- a/drivers/media/platform/coda.c +++ b/drivers/media/platform/coda.c @@ -3104,7 +3104,7 @@ static void coda_finish_decode(struct coda_ctx *ctx) * by up to 512 bytes */ if (ctx->bit_stream_param & CODA_BIT_STREAM_END_FLAG) { - if (coda_get_bitstream_payload(ctx) >= 0x100000 - 512) + if (coda_get_bitstream_payload(ctx) >= CODA_MAX_FRAME_SIZE - 512) kfifo_init(&ctx->bitstream_fifo, ctx->bitstream.vaddr, ctx->bitstream.size); } |