early-access version 1680
This commit is contained in:
1
externals/ffmpeg/tests/api/api-band-test.c
vendored
1
externals/ffmpeg/tests/api/api-band-test.c
vendored
@@ -198,7 +198,6 @@ static int video_decode(const char *input_filename)
|
||||
|
||||
av_packet_unref(&pkt);
|
||||
av_frame_free(&fr);
|
||||
avcodec_close(ctx);
|
||||
avformat_close_input(&fmt_ctx);
|
||||
avcodec_free_context(&ctx);
|
||||
av_freep(&byte_buffer);
|
||||
|
18
externals/ffmpeg/tests/api/api-flac-test.c
vendored
18
externals/ffmpeg/tests/api/api-flac-test.c
vendored
@@ -223,20 +223,6 @@ static int run_test(AVCodec *enc, AVCodec *dec, AVCodecContext *enc_ctx,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int close_encoder(AVCodecContext **enc_ctx)
|
||||
{
|
||||
avcodec_close(*enc_ctx);
|
||||
av_freep(enc_ctx);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int close_decoder(AVCodecContext **dec_ctx)
|
||||
{
|
||||
avcodec_close(*dec_ctx);
|
||||
av_freep(dec_ctx);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
AVCodec *enc = NULL, *dec = NULL;
|
||||
@@ -265,8 +251,8 @@ int main(void)
|
||||
return 1;
|
||||
if (run_test(enc, dec, enc_ctx, dec_ctx) != 0)
|
||||
return 1;
|
||||
close_encoder(&enc_ctx);
|
||||
close_decoder(&dec_ctx);
|
||||
avcodec_free_context(&enc_ctx);
|
||||
avcodec_free_context(&dec_ctx);
|
||||
}
|
||||
}
|
||||
|
||||
|
1
externals/ffmpeg/tests/api/api-h264-test.c
vendored
1
externals/ffmpeg/tests/api/api-h264-test.c
vendored
@@ -144,7 +144,6 @@ static int video_decode_example(const char *input_filename)
|
||||
|
||||
av_packet_unref(&pkt);
|
||||
av_frame_free(&fr);
|
||||
avcodec_close(ctx);
|
||||
avformat_close_input(&fmt_ctx);
|
||||
avcodec_free_context(&ctx);
|
||||
av_freep(&byte_buffer);
|
||||
|
1
externals/ffmpeg/tests/api/api-seek-test.c
vendored
1
externals/ffmpeg/tests/api/api-seek-test.c
vendored
@@ -266,7 +266,6 @@ end:
|
||||
av_freep(&crc_array);
|
||||
av_freep(&pts_array);
|
||||
av_frame_free(&fr);
|
||||
avcodec_close(ctx);
|
||||
avformat_close_input(&fmt_ctx);
|
||||
avcodec_free_context(&ctx);
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user