]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libshine.c
dxva2_hevc: properly signal the num_delta_pocs from the SPS RPS
[ffmpeg] / libavcodec / libshine.c
index 27c1a5f43f56752b0d742e8d5bd0f4c6fa1ee485..f4cf5981bcb79992c42f4a359088b3f14788845e 100644 (file)
@@ -102,7 +102,7 @@ static int libshine_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
 
     len = hdr.frame_size;
     if (len <= s->buffer_index) {
-        if ((ret = ff_alloc_packet2(avctx, avpkt, len)))
+        if ((ret = ff_alloc_packet2(avctx, avpkt, len, 0)))
             return ret;
         memcpy(avpkt->data, s->buffer, len);
         s->buffer_index -= len;
@@ -139,7 +139,7 @@ AVCodec ff_libshine_encoder = {
     .init                  = libshine_encode_init,
     .encode2               = libshine_encode_frame,
     .close                 = libshine_encode_close,
-    .capabilities          = CODEC_CAP_DELAY,
+    .capabilities          = AV_CODEC_CAP_DELAY,
     .sample_fmts           = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16P,
                                                             AV_SAMPLE_FMT_NONE },
     .supported_samplerates = libshine_sample_rates,