mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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:
parent
3fc8041b56
commit
d9d5695390
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user