diff options
Diffstat (limited to 'libavformat/sdr2.c')
-rw-r--r-- | libavformat/sdr2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/sdr2.c b/libavformat/sdr2.c index 50abdf9397..8893f260d2 100644 --- a/libavformat/sdr2.c +++ b/libavformat/sdr2.c @@ -90,8 +90,8 @@ static int sdr2_read_packet(AVFormatContext *s, AVPacket *pkt) avio_skip(s->pb, 30); if (pos == FIRST) { - if (av_new_packet(pkt, next - 52 + 24) < 0) - return AVERROR(ENOMEM); + if ((ret = av_new_packet(pkt, next - 52 + 24)) < 0) + return ret; memcpy(pkt->data, header, 24); ret = avio_read(s->pb, pkt->data + 24, next - 52); if (ret < 0) { |