]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/svq1enc.c
vp9: assign PTS to visible instead of invisible frames
[ffmpeg] / libavcodec / svq1enc.c
index 0c5971b4bb4f6f705d231b6dea008a7cbb7c7c09..ec540a25e3cac15dc4afe37296470f6e99258ecb 100644 (file)
@@ -595,9 +595,9 @@ static int svq1_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
         }
     }
     if (!s->last_picture->data[0]) {
-        if ((ret = ff_get_buffer(avctx, s->last_picture, 0)) < 0) {
+        ret = ff_get_buffer(avctx, s->last_picture, 0);
+        if (ret < 0)
             return ret;
-        }
     }
     if (!s->scratchbuf) {
         s->scratchbuf = av_malloc_array(s->current_picture->linesize[0], 16 * 3);