diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-08-06 12:00:12 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-08-10 09:11:09 +0200 |
commit | d9d56953906103dfae351e4d32af501fa1d62bdb (patch) | |
tree | 083a7532c771b46c0162d72a6222cd456c696cd4 /libavcodec | |
parent | 3fc8041b56c2c6a6937f74e3ebf71b6c114a9a91 (diff) | |
download | ffmpeg-d9d56953906103dfae351e4d32af501fa1d62bdb.tar.gz |
avcodec/amfenc: Fix declaration-after-statement warning
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/amfenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/amfenc.c b/libavcodec/amfenc.c index cb48f8c273..518b8396e7 100644 --- a/libavcodec/amfenc.c +++ b/libavcodec/amfenc.c @@ -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); |