Skip to content

Commit

Permalink
Fix mpeg2fix randomly aborting. OBEY EAGAIN for av_read_frame! :)
Browse files Browse the repository at this point in the history
  • Loading branch information
Beirdo committed Aug 1, 2011
1 parent 99c3e23 commit 1a41fec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mythtv/programs/mythtranscode/mpeg2fix.cpp
Expand Up @@ -1261,6 +1261,10 @@ int MPEG2fixup::GetFrame(AVPacket *pkt)

if (ret < 0)
{
// If it is EAGAIN, obey it, dangit!
if (ret == -EAGAIN)
continue;

//insert a bogus frame (this won't be written out)
if(vFrame.isEmpty())
{
Expand Down

0 comments on commit 1a41fec

Please sign in to comment.