diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-04-24 03:08:14 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-05-09 16:17:39 +0200 |
commit | 91d27f7e02e5bec4b6e53cc7a7f15df8be017bb3 (patch) | |
tree | 9147361951197430f75c07b3d9a6b2995c872c8e | |
parent | a5d1497f33afa17b6a3578b66638e69bf8a558de (diff) | |
download | ffmpeg-91d27f7e02e5bec4b6e53cc7a7f15df8be017bb3.tar.gz |
doc/examples/demux_decode: Simplify loop
Fixes: CID1463550 Logically dead code
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | doc/examples/demux_decode.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/examples/demux_decode.c b/doc/examples/demux_decode.c index f26611d8f4..64f5547bc4 100644 --- a/doc/examples/demux_decode.c +++ b/doc/examples/demux_decode.c @@ -138,11 +138,9 @@ static int decode_packet(AVCodecContext *dec, const AVPacket *pkt) ret = output_audio_frame(frame); av_frame_unref(frame); - if (ret < 0) - return ret; } - return 0; + return ret; } static int open_codec_context(int *stream_idx, |