Change PlaYUVerStream in order to handle different interfaces to read and write streams

This commit is contained in:
2014-12-03 15:26:13 +00:00
parent 18722a02bf
commit 4135c36b08
3 changed files with 78 additions and 47 deletions
+5
View File
@@ -191,6 +191,11 @@ Bool LibAvContextHandle::initAvFormat( char* filename, UInt& width, UInt& height
break;
}
}
if( pixel_format == PlaYUVerFrame::NO_FMT )
{
closeAvFormat();
return false;
}
/* dump input information to stderr */
av_dump_format( fmt_ctx, 0, src_filename, 0 );