forked from FFmpeg/FFmpeg
doc/examples/demux_decode: Simplify loop
Fixes: CID1463550 Logically dead code Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
a5d1497f33
commit
91d27f7e02
1 changed files with 1 additions and 3 deletions
|
@ -138,11 +138,9 @@ static int decode_packet(AVCodecContext *dec, const AVPacket *pkt)
|
||||||
ret = output_audio_frame(frame);
|
ret = output_audio_frame(frame);
|
||||||
|
|
||||||
av_frame_unref(frame);
|
av_frame_unref(frame);
|
||||||
if (ret < 0)
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int open_codec_context(int *stream_idx,
|
static int open_codec_context(int *stream_idx,
|
||||||
|
|
Loading…
Add table
Reference in a new issue