1
0
Fork 0

avcodec/v4l2_m2m: Remove redundant av_frame_unref()

This frame will be freed in the next line.

Reviewed-by: Zhao Zhili <quinkblack@foxmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2023-09-24 14:44:37 +02:00
parent 05bfc03752
commit 45b4781e9a
1 changed files with 0 additions and 1 deletions

View File

@ -255,7 +255,6 @@ static void v4l2_m2m_destroy_context(void *opaque, uint8_t *context)
if (s->fd >= 0)
close(s->fd);
av_frame_unref(s->frame);
av_frame_free(&s->frame);
av_packet_unref(&s->buf_pkt);