diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-14 15:17:16 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-14 15:17:16 +0100 |
commit | 4adc8a29a0565cb35815eeb8e693b47dcaf890ce (patch) | |
tree | 69f03cedcda1457ba0c5303c2dc70437aa38f0c0 /libavcodec/rpza.c | |
parent | 8943925d1f68316218a9722c3f275ae1ae29b325 (diff) | |
parent | 74a9a624c5c4d50760d8d57458eba57366f6cb26 (diff) | |
download | ffmpeg-4adc8a29a0565cb35815eeb8e693b47dcaf890ce.tar.gz |
Merge commit '74a9a624c5c4d50760d8d57458eba57366f6cb26'
* commit '74a9a624c5c4d50760d8d57458eba57366f6cb26':
vcr1: return a meaningful error code.
rpza: return a meaningful error code.
qdrw: cosmetics, reformat
Conflicts:
libavcodec/qdrw.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/rpza.c')
-rw-r--r-- | libavcodec/rpza.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/rpza.c b/libavcodec/rpza.c index a424759953..a5da96720f 100644 --- a/libavcodec/rpza.c +++ b/libavcodec/rpza.c @@ -251,15 +251,16 @@ static int rpza_decode_frame(AVCodecContext *avctx, const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; RpzaContext *s = avctx->priv_data; + int ret; s->buf = buf; s->size = buf_size; s->frame.reference = 3; s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE; - if (avctx->reget_buffer(avctx, &s->frame)) { + if ((ret = avctx->reget_buffer(avctx, &s->frame)) < 0) { av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n"); - return -1; + return ret; } rpza_decode_stream(s); |