1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

ffplay: fix memleak if avfilter is disabled

This commit is contained in:
alexandru_mg3
2011-05-05 01:42:53 +02:00
committed by Michael Niedermayer
parent 10ff2967ea
commit b93e12fdf4

View File

@@ -1831,6 +1831,7 @@ static int video_thread(void *arg)
#else #else
ret = get_video_frame(is, frame, &pts_int, &pkt); ret = get_video_frame(is, frame, &pts_int, &pkt);
pos = pkt.pos; pos = pkt.pos;
av_free_packet(&pkt);
#endif #endif
if (ret < 0) goto the_end; if (ret < 0) goto the_end;
@@ -1841,9 +1842,7 @@ static int video_thread(void *arg)
pts = pts_int*av_q2d(is->video_st->time_base); pts = pts_int*av_q2d(is->video_st->time_base);
ret = queue_picture(is, frame, pts, pos); ret = queue_picture(is, frame, pts, pos);
#if !CONFIG_AVFILTER
av_free_packet(&pkt);
#endif
if (ret < 0) if (ret < 0)
goto the_end; goto the_end;