diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-18 10:04:53 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-18 10:05:00 +0200 |
commit | b53d6a47c51a54bb830de14fc742a9284f612745 (patch) | |
tree | 56f0c4cafc09026c36d4ad4f4c3c93eeb9249461 /libavcodec/jpeglsdec.c | |
parent | 5918b7ac4116a8d579269f0186f8dc78ed34d6df (diff) | |
parent | a5a0ef5e13a59ff53318a45d77c5624b23229c6f (diff) | |
download | ffmpeg-b53d6a47c51a54bb830de14fc742a9284f612745.tar.gz |
Merge commit 'a5a0ef5e13a59ff53318a45d77c5624b23229c6f'
* commit 'a5a0ef5e13a59ff53318a45d77c5624b23229c6f':
jpegls: return meaningful errors
sparc: VIS mnemonics
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/jpeglsdec.c')
-rw-r--r-- | libavcodec/jpeglsdec.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libavcodec/jpeglsdec.c b/libavcodec/jpeglsdec.c index b13f9ef734..40301d421c 100644 --- a/libavcodec/jpeglsdec.c +++ b/libavcodec/jpeglsdec.c @@ -68,13 +68,13 @@ int ff_jpegls_decode_lse(MJpegDecodeContext *s) case 2: case 3: av_log(s->avctx, AV_LOG_ERROR, "palette not supported\n"); - return -1; + return AVERROR(ENOSYS); case 4: av_log(s->avctx, AV_LOG_ERROR, "oversize image not supported\n"); - return -1; + return AVERROR(ENOSYS); default: av_log(s->avctx, AV_LOG_ERROR, "invalid id %d\n", id); - return -1; + return AVERROR_INVALIDDATA; } av_dlog(s->avctx, "ID=%i, T=%i,%i,%i\n", id, s->t1, s->t2, s->t3); @@ -352,11 +352,10 @@ int ff_jpegls_decode_picture(MJpegDecodeContext *s, int near, cur += s->picture.linesize[0]; } } else if (ilv == 2) { /* sample interleaving */ - av_log(s->avctx, AV_LOG_ERROR, - "Sample interleaved images are not supported.\n"); + avpriv_report_missing_feature(s->avctx, "Sample interleaved images"); av_free(state); av_free(zero); - return -1; + return AVERROR_PATCHWELCOME; } if (shift) { /* we need to do point transform or normalize samples */ |