Re: lavinfo returns bad texts to lav2mpeg

"Steven M. Schultz" <[email protected]>
Newsgroups gmane.comp.video.mjpeg.devel
Message-ID <[email protected]>
On Mon, 26 Feb 2007, Matthias Schwarzott wrote:

> This is about lavinfo returning for example this:
> video_inter=***BOGUS/UNKNOWN*** interlacing
	
	If you see that string printed then the video stream/file *is*
	broken.  It means that the interlacing tag is NOT one of the valid
	values:

Y4M_ILACE_NONE
Y4M_ILACE_BOTTOM_FIRST
Y4M_ILACE_TOP_FIRST
Y4M_ILACE_MIXED

	if it's not that then the file is corrupt. 

> and lav2mpeg cannot cope with that, it then tries to execute that line and 

	If the interlacing is an invalid value then what should the program
	do?  Continue on with an incorrect assumption?

> I thought this issue was solved, but having a closer look this needs some work
> I think.

	I think the input data needs to be fixed rather than the code.

	Or perhaps the program lavinfo could print a message and then
	do

	   exit(1);

	:)

	Cheers,
	Steven Schultz


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.