diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index bc1e03e242..c522c6dd43 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -2670,7 +2670,7 @@ static int mpegts_read_packet(AVFormatContext *s, AVPacket *pkt) } if (!ret && pkt->size < 0) - ret = AVERROR(EINTR); + ret = AVERROR_INVALIDDATA; return ret; }