diff options
Diffstat (limited to 'libavformat/bit.c')
-rw-r--r-- | libavformat/bit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/bit.c b/libavformat/bit.c index 0aacfc7c38..2dc7d4f3f7 100644 --- a/libavformat/bit.c +++ b/libavformat/bit.c @@ -94,8 +94,8 @@ static int read_packet(AVFormatContext *s, if(ret != 8 * packet_size * sizeof(uint16_t)) return AVERROR(EIO); - if (av_new_packet(pkt, packet_size) < 0) - return AVERROR(ENOMEM); + if ((ret = av_new_packet(pkt, packet_size)) < 0) + return ret; init_put_bits(&pbo, pkt->data, packet_size); for(j=0; j < packet_size; j++) |