]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/s302m.c
qsv{dec,enc}: always use an internal mfxFrameSurface1
[ffmpeg] / libavcodec / s302m.c
index 061f0158bb53c2efca1e3762bc57c29e58a603fb..635f697b5c6e38f43911f015f9a7407fc081593d 100644 (file)
@@ -93,7 +93,7 @@ static int s302m_decode_frame(AVCodecContext *avctx, void *data,
     /* get output buffer */
     block_size = (avctx->bits_per_coded_sample + 4) / 4;
     frame->nb_samples = 2 * (buf_size / block_size) / avctx->channels;
-    if ((ret = ff_get_buffer(avctx, frame)) < 0) {
+    if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) {
         av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
         return ret;
     }
@@ -142,9 +142,9 @@ static int s302m_decode_frame(AVCodecContext *avctx, void *data,
 
 AVCodec ff_s302m_decoder = {
     .name           = "s302m",
+    .long_name      = NULL_IF_CONFIG_SMALL("SMPTE 302M"),
     .type           = AVMEDIA_TYPE_AUDIO,
     .id             = AV_CODEC_ID_S302M,
     .decode         = s302m_decode_frame,
-    .capabilities   = CODEC_CAP_DR1,
-    .long_name      = NULL_IF_CONFIG_SMALL("SMPTE 302M"),
+    .capabilities   = AV_CODEC_CAP_DR1,
 };