Permalink
Browse files

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

(cherry picked from commit 1a41fec)
  • Loading branch information...
1 parent 5be3cdf commit d525265399ac8352265dbc12d7d29b9d50a852c3 @Beirdo Beirdo committed with stuartm 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 d525265

Please sign in to comment.