Browse Source

ffplay: fix memleak if avfilter is disabled

tags/n0.8
alexandru_mg3 Michael Niedermayer 14 years ago
parent
commit
b93e12fdf4
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      ffplay.c

+ 2
- 3
ffplay.c View File

@@ -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;



Loading…
Cancel
Save