[FFmpeg-devel] [PATCH]Support j2k in mov
Michael Niedermayer
michaelni at gmx.at
Tue Jul 23 04:15:06 CEST 2013
On Wed, Jul 17, 2013 at 12:03:47AM +0200, Carl Eugen Hoyos wrote:
> Hi!
>
> Attached patch fixes decoding of j2k in mov (like the sample from ticket
> #860), this is a regression in 2.0 as reported by Piotr.
>
> Please comment, Carl Eugen
> jpeg2000dec.c | 2 ++
> 1 file changed, 2 insertions(+)
> 732e6cea19cb8e659b602d56e15b1ef68a3b25f4 patchjpeg2000mov.diff
> diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
> index d9b9888..a46fded 100644
> --- a/libavcodec/jpeg2000dec.c
> +++ b/libavcodec/jpeg2000dec.c
> @@ -1429,6 +1429,8 @@ static int jpeg2000_decode_frame(AVCodecContext *avctx, void *data,
> }
> } else {
> bytestream2_seek(&s->g, 0, SEEK_SET);
> + if (!jp2_find_codestream(s))
> + bytestream2_seek(&s->g, 0, SEEK_SET);
probably ok
note; ive also posted an alternative patch
it might make sense to apply both as they handle slighty different
cases
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
He who knows, does not speak. He who speaks, does not know. -- Lao Tsu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130723/2fea4b0e/attachment.asc>
More information about the ffmpeg-devel
mailing list