Permalink
Browse files

Fix mpeg2fix randomly aborting. OBEY EAGAIN for av_read_frame! :)

  • Loading branch information...
1 parent 99c3e23 commit 1a41fec06ee2f6746c9ccb944efcf7ee62e52664 @Beirdo Beirdo committed Aug 1, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 mythtv/programs/mythtranscode/mpeg2fix.cpp
@@ -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())
{

0 comments on commit 1a41fec

Please sign in to comment.