diff options
author | alexandru_mg3 <alexandru_mg3_NOSPAM@yahoo.com> | 2011-05-05 01:42:53 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-05-05 01:42:53 +0200 |
commit | b93e12fdf4392570ce87143fb36c4f2f1d1c8ba1 (patch) | |
tree | dfeb12d7ea0c68e601966969f4b76dd960eebe64 /ffplay.c | |
parent | 10ff2967ea8d17f7e46599497214280a21ca409a (diff) | |
download | ffmpeg-streaming-b93e12fdf4392570ce87143fb36c4f2f1d1c8ba1.zip ffmpeg-streaming-b93e12fdf4392570ce87143fb36c4f2f1d1c8ba1.tar.gz |
ffplay: fix memleak if avfilter is disabled
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1831,6 +1831,7 @@ static int video_thread(void *arg) #else ret = get_video_frame(is, frame, &pts_int, &pkt); pos = pkt.pos; + av_free_packet(&pkt); #endif 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); ret = queue_picture(is, frame, pts, pos); -#if !CONFIG_AVFILTER - av_free_packet(&pkt); -#endif + if (ret < 0) goto the_end; |