]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/proresenc_kostya.c
ffmpeg: check samplerate from decoder.
[ffmpeg] / libavcodec / proresenc_kostya.c
index 4bbfe274a5b91222f725d456af2fcb2c26ea7bca..86037d38077fa542670f71a02776ff7b6b51a1e8 100644 (file)
@@ -700,9 +700,8 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
 
     pkt_size = ctx->frame_size + FF_MIN_BUFFER_SIZE;
 
-    if ((ret = ff_alloc_packet2(avctx, pkt, pkt_size)) < 0) {
+    if ((ret = ff_alloc_packet2(avctx, pkt, pkt_size)) < 0)
         return ret;
-    }
 
     orig_buf = pkt->data;