[PATCH] fix infinite loop with libavfilter enabled and stream copy when first frame is not keyframe
Hi, $subject, what happens is frame_available is always set to 1, therefore infinite loop. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org
On Sat, Jul 03, 2010 at 06:03:46PM -0700, Baptiste Coudurier wrote:
Hi,
$subject, what happens is frame_available is always set to 1, therefore infinite loop.
that doesnt pull all frames out of the filter chain does below work for you too ? (untested!) Index: ffmpeg.c =================================================================== --- ffmpeg.c (revision 24050) +++ ffmpeg.c (working copy) @@ -1773,13 +1773,11 @@ av_free_packet(&opkt); } } -#if CONFIG_AVFILTER - frame_available = (ist->st->codec->codec_type == AVMEDIA_TYPE_VIDEO) && - ist->out_video_filter && avfilter_poll_frame(ist->out_video_filter->inputs[0]); -#endif } #if CONFIG_AVFILTER + frame_available = (ist->st->codec->codec_type == AVMEDIA_TYPE_VIDEO) && + ist->out_video_filter && avfilter_poll_frame(ist->out_video_filter->inputs[0]); if(ist->picref) avfilter_unref_pic(ist->picref); } [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB It is dangerous to be right in matters on which the established authorities are wrong. -- Voltaire
On 7/4/10 4:23 PM, Michael Niedermayer wrote:
On Sat, Jul 03, 2010 at 06:03:46PM -0700, Baptiste Coudurier wrote:
Hi,
$subject, what happens is frame_available is always set to 1, therefore infinite loop.
that doesnt pull all frames out of the filter chain
does below work for you too ? (untested!)
It seems to work, indeed. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org
On Mon, Jul 05, 2010 at 12:06:17AM -0700, Baptiste Coudurier wrote:
On 7/4/10 4:23 PM, Michael Niedermayer wrote:
On Sat, Jul 03, 2010 at 06:03:46PM -0700, Baptiste Coudurier wrote:
Hi,
$subject, what happens is frame_available is always set to 1, therefore infinite loop.
that doesnt pull all frames out of the filter chain
does below work for you too ? (untested!)
It seems to work, indeed.
commited, flame the shit out of me on svn log if it break something [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The educated differ from the uneducated as much as the living from the dead. -- Aristotle
participants (2)
-
baptiste.coudurier@gmail.com -
michaelni@gmx.at