Date: Thu, 9 Dec 2004 02:22:59 +0200 From: Vladimir Kushnir <vkushnir@i.kiev.ua> To: freebsd-questions@freebsd.org Cc: lioux@freebsd.org Subject: Re: ffmpeg port Message-ID: <200412090223.00830.vkushnir@i.kiev.ua> In-Reply-To: <20041208083118.GU39558@pcwin002.win.tue.nl> References: <20041207123346.S90505@adsl-68-76-19-75.dsl.klmzmi.ameritech.net> <200412081926.22499.agh@tpg.com.au> <20041208083118.GU39558@pcwin002.win.tue.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi,
There seems to be another breakage: ffmpeg doesn't grab anymore. It just sits
there and dumps core with "page already free" on exit. Comparing to
libavformat/grab.c, the following patch (sort of) fixes situation, bit only
partially.
Regards,
Vladimir
*** /usr/ports/multimedia/ffmpeg/files/grab_bsdbktr.c Mon Mar 15 00:38:59 2004
--- grab_bsdbktr.c Thu Dec 9 02:05:00 2004
***************
*** 257,263 ****
st = av_new_stream(s1, 0);
if (!st)
return -ENOMEM;
!
s->width = width;
s->height = height;
s->frame_rate = frame_rate;
--- 257,264 ----
st = av_new_stream(s1, 0);
if (!st)
return -ENOMEM;
! av_set_pts_info(st, 48, 1, 1000000); /* 48 bits pts in use */
!
s->width = width;
s->height = height;
s->frame_rate = frame_rate;
***************
*** 273,280 ****
st->codec.frame_rate = frame_rate;
st->codec.frame_rate_base = frame_rate_base;
- av_set_pts_info(s1, 48, 1, 1000000); /* 48 bits pts in use */
-
if (ap->standard) {
if (!strcasecmp(ap->standard, "pal"))
format = PAL;
--- 274,279 ----
***************
*** 298,304 ****
ioctl(s->fd, METEORCAPTUR, &c);
close(s->fd);
close(s->tuner_fd);
- av_free(s);
return 0;
}
--- 297,302 ----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412090223.00830.vkushnir>
