[FFmpeg-devel] [PATCH 09/11] avformat: Forward errors where possible

Michael Niedermayer michael at niedermayer.cc
Thu Dec 12 20:02:25 EET 2019

On Tue, Dec 10, 2019 at 10:59:53PM +0100, Andreas Rheinhardt wrote:
> It is not uncommon to find code where the caller thinks to know better
> what the return value should be than the callee. E.g. something like
> "if (av_new_packet(pkt, size) < 0) return AVERROR(ENOMEM);". This commit
> changes several instances of this to instead forward the actual error.
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---

will apply


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you fake or manipulate statistics in a paper in physics you will never
get a job again.
If you fake or manipulate statistics in a paper in medicin you will get
a job for life at the pharma industry.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20191212/de6b2597/attachment.sig>

More information about the ffmpeg-devel mailing list