On Tue, Mar 03, 2015 at 04:26:46PM +0100, Alexander Strasser wrote:
> On 2015-02-17 22:15 +0000, Derek Buitenhuis wrote:
> > On 2/17/2015 10:10 PM, James Almer wrote:
> > > Afaik, if the error is based on user input then EINVAL (Invalid argument) 
> > > is correct.
> > > AVERROR_INVALIDDATA is when the error is in the bitstream/container and 
> > > not an argument the 
> > > user passed to the library.
> > 
> > Right, I conflated the two.
> > 
> > Patch dropped.
> 
>   Sorry to reply to this old'ish thread. Just wanted to say I find the
> distinction kind of superficial; why do we do it again?
> 

Invalid data is related to reading an unknown source, it's not exactly
under user control.

Invalid argument is a user specified parameter. The user is often
responsible if this is triggered.

They are not really related.

-- 
Clément B.

Attachment: pgpYVSiPCE1eP.pgp
Description: PGP signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to