mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-02 04:52:09 +00:00
avformat/asfdec: Print a warning if data is skiped due to less than a frame header being left
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4b0a475846
commit
a5f617e9ec
@ -1175,6 +1175,9 @@ static int asf_parse_packet(AVFormatContext *s, AVIOContext *pb, AVPacket *pkt)
|
||||
asf->packet_segments < 1 && asf->packet_time_start == 0) {
|
||||
int ret = asf->packet_size_left + asf->packet_padsize;
|
||||
|
||||
if (asf->packet_size_left && asf->packet_size_left < FRAME_HEADER_SIZE)
|
||||
av_log(s, AV_LOG_WARNING, "Skip due to FRAME_HEADER_SIZE\n");
|
||||
|
||||
assert(ret >= 0);
|
||||
/* fail safe */
|
||||
avio_skip(pb, ret);
|
||||
|
Loading…
Reference in New Issue
Block a user