avcodec/amfenc: Fix declaration-after-statement warning

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2023-08-06 12:00:12 +02:00
parent 3fc8041b56
commit d9d5695390
1 changed files with 1 additions and 1 deletions

View File

@ -720,10 +720,10 @@ int ff_amf_receive_packet(AVCodecContext *avctx, AVPacket *avpkt)
if (!avpkt->data && !avpkt->buf) {
res_query = ctx->encoder->pVtbl->QueryOutput(ctx->encoder, &data);
if (data) {
query_output_data_flag = 1;
// copy data to packet
AMFBuffer *buffer;
AMFGuid guid = IID_AMFBuffer();
query_output_data_flag = 1;
data->pVtbl->QueryInterface(data, &guid, (void**)&buffer); // query for buffer interface
ret = amf_copy_buffer(avctx, avpkt, buffer);