Skip to content

Commit 7958ddd

Browse files
authored
Removed redundant unref in HelloWorld
1 parent 055b782 commit 7958ddd

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

0_hello_world.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,6 @@ static int decode_packet(AVPacket *pPacket, AVCodecContext *pCodecContext, AVFra
236236
snprintf(frame_filename, sizeof(frame_filename), "%s-%d.pgm", "frame", pCodecContext->frame_number);
237237
// save a grayscale frame into a .pgm file
238238
save_gray_frame(pFrame->data[0], pFrame->linesize[0], pFrame->width, pFrame->height, frame_filename);
239-
240-
av_frame_unref(pFrame);
241239
}
242240
}
243241
return 0;

0 commit comments

Comments
 (0)