mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-04-20 14:39:13 -04:00
obs-ffmpeg: Treat EINVAL as non-fatal in ffmpeg-mux
This commit is contained in:
@@ -807,8 +807,8 @@ static inline bool ffmpeg_mux_packet(struct ffmpeg_mux *ffm, uint8_t *buf,
|
||||
ret, av_err2str(ret));
|
||||
}
|
||||
|
||||
/* Treat "Invalid data found when processing input" as non-fatal */
|
||||
if (ret == AVERROR_INVALIDDATA) {
|
||||
/* Treat "Invalid data found when processing input" and "Invalid argument" as non-fatal */
|
||||
if (ret == AVERROR_INVALIDDATA || ret == EINVAL) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user