diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-01-17 01:56:03 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-17 01:56:03 +0100 |
commit | c4d85fc23c100f7a27d9bad710eb153214868e27 (patch) | |
tree | 8c13bec30b6ddec4cb5cc2cf3f967cb51e6b3e98 /libavcodec | |
parent | 040e5703e6b8d1d10e389ee5ecd91711c61b8378 (diff) | |
download | ffmpeg-c4d85fc23c100f7a27d9bad710eb153214868e27.tar.gz |
avcodec/flac_parser: fix handling EOF if no headers are found
Fixes assertion failure
Fixes Ticket4269
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/flac_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flac_parser.c b/libavcodec/flac_parser.c index ed0da55c23..12e09bb55e 100644 --- a/libavcodec/flac_parser.c +++ b/libavcodec/flac_parser.c @@ -704,7 +704,7 @@ static int flac_parse(AVCodecParserContext *s, AVCodecContext *avctx, handle_error: *poutbuf = NULL; *poutbuf_size = 0; - return read_end - buf; + return buf_size ? read_end - buf : 0; } static av_cold int flac_parse_init(AVCodecParserContext *c) |