Re: [FFmpeg-devel] [PATCH 2/2] lavc/tak: do not store invalid values in stream info

2023-05-04 Thread Paul B Mahol
approved ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [PATCH 2/2] lavc/tak: do not store invalid values in stream info

2023-05-04 Thread Anton Khirnov
When tak_get_nb_samples() fails, it will currently write AVERROR_INVALIDDATA as TAKStreamInfo.frame_samples. The parser will then use this negative value as a frame duration, which leads to various breakage. Avoid this by returning the error code from tak_parse_streaminfo() directly and never stor