Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2014-02-19 02:47:55 +0400
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-02-19 02:47:55 +0400
commitfea6db064b00822af488db93f0f8b19f25cae515 (patch)
treec817226a71c47fc928db7b6ef1e397eec76c4095 /libavcodec/h264.c
parent96f9fbe10933944b3eba86efa1d1ca094f2c28f8 (diff)
h264: informative error reporting in decode_slice_header()
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 3f99109abf..9cc32e9dec 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -3471,8 +3471,12 @@ static int decode_slice_header(H264Context *h, H264Context *h0)
h->height != h->avctx->coded_height ||
needs_reinit)) {
if (h != h0) {
- av_log(h->avctx, AV_LOG_ERROR, "changing width/height on "
- "slice %d\n", h0->current_slice + 1);
+ av_log(h->avctx, AV_LOG_ERROR,
+ "changing width %d -> %d / height %d -> %d on "
+ "slice %d\n",
+ h->width, h->avctx->coded_width,
+ h->height, h->avctx->coded_height,
+ h0->current_slice + 1);
return AVERROR_INVALIDDATA;
}