diff options
Diffstat (limited to 'libavcodec/pcm.c')
-rw-r--r-- | libavcodec/pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index bae338d8f9..4a8a4f78f9 100644 --- a/libavcodec/pcm.c +++ b/libavcodec/pcm.c @@ -107,7 +107,7 @@ static int pcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, n = frame->nb_samples * avctx->channels; samples = (const short *)frame->data[0]; - if ((ret = ff_alloc_packet2(avctx, avpkt, n * sample_size))) + if ((ret = ff_alloc_packet2(avctx, avpkt, n * sample_size)) < 0) return ret; dst = avpkt->data; |