Skip to content

Commit a28cd42

Browse files
close open avformat
1 parent 0d25752 commit a28cd42

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

3_transcoding.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ int main(int argc, char *argv[])
347347
input_packet = NULL;
348348
}
349349

350+
avformat_close_input(&decoder->avfc);
351+
350352
avformat_free_context(decoder->avfc); decoder->avfc = NULL;
351353
avformat_free_context(encoder->avfc); encoder->avfc = NULL;
352354

0 commit comments

Comments
 (0)