]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libutvideoenc.cpp
lavfi/hflip: copy palette data in start_frame()
[ffmpeg] / libavcodec / libutvideoenc.cpp
index dccfa6b807809af05b1757f2554e3ab1e8e164c3..9ddd0c19627f1355823127ffef658763ea74425d 100644 (file)
@@ -130,9 +130,8 @@ static int utvideo_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
     uint8_t *dst;
 
     /* Alloc buffer */
-    if ((ret = ff_alloc_packet2(avctx, pkt, utv->buf_size)) < 0) {
+    if ((ret = ff_alloc_packet2(avctx, pkt, utv->buf_size)) < 0)
         return ret;
-    }
 
     dst = pkt->data;