diff options
author | Linjie Fu <linjie.fu@intel.com> | 2019-01-11 16:07:33 +0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-01-12 02:06:09 +0100 |
commit | 5764c9528b97c8340bfaacbe98b1de87a8e92e4d (patch) | |
tree | 9f770d5f62e6ec3ef58047a2582e5674a3137fb3 | |
parent | e94288c4932e40d99c00557add2a164d3601c1ed (diff) | |
download | ffmpeg-5764c9528b97c8340bfaacbe98b1de87a8e92e4d.tar.gz |
lavc/hevc_parser: report detailed log when missing picture occurs
Report the detailed log with buf_size in parse_nal_units to provide
more information when picture could not be found.
Match the behaviour in h264_parser.
Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/hevc_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc_parser.c b/libavcodec/hevc_parser.c index 369d1338d0..f0b0789990 100644 --- a/libavcodec/hevc_parser.c +++ b/libavcodec/hevc_parser.c @@ -239,7 +239,7 @@ static int parse_nal_units(AVCodecParserContext *s, const uint8_t *buf, } } /* didn't find a picture! */ - av_log(avctx, AV_LOG_ERROR, "missing picture in access unit\n"); + av_log(avctx, AV_LOG_ERROR, "missing picture in access unit with size %d\n", buf_size); return -1; } |