[FFmpeg-devel] [PATCH]Do not ask for jpeg2000 samples that FFmpeg can write

Michael Niedermayer michaelni at gmx.at
Sun Jul 7 00:03:34 CEST 2013


On Sat, Jul 06, 2013 at 03:43:19PM +0200, Carl Eugen Hoyos wrote:
> Hi!
> 
> Attached patch should avoid that we receive samples that FFmpeg is
> able to write itself anytime.
> 
> Please review, Carl Eugen

>  jpeg2000dec.c |    5 -----
>  1 file changed, 5 deletions(-)
> eb0e7fb96bba3b4e77de83f5a0ca83d4b7bde318  patchjpeg2000samples.diff
> diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
> index 4018dc9..18958ad 100644
> --- a/libavcodec/jpeg2000dec.c
> +++ b/libavcodec/jpeg2000dec.c
> @@ -205,13 +205,8 @@ static int get_siz(Jpeg2000DecoderContext *s)
>          s->sgnd[i]   = !!(x & 0x80);
>          s->cdx[i]    = bytestream2_get_byteu(&s->g);
>          s->cdy[i]    = bytestream2_get_byteu(&s->g);
> -        if (s->cdx[i] != 1 || s->cdy[i] != 1) {
> -            avpriv_request_sample(s->avctx,
> -                                  "CDxy values %d %d for component %d",
> -                                  s->cdx[i], s->cdy[i], i);

this should continue to print some warning as it doesnt work (at least
last i checked)

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Frequently ignored answer#1 FFmpeg bugs should be sent to our bugtracker. User
questions about the command line tools should be sent to the ffmpeg-user ML.
And questions about how to use libav* should be sent to the libav-user ML.
-------------- 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/20130707/80176002/attachment.asc>


More information about the ffmpeg-devel mailing list