fftools/ffmpeg_mux: Remove unneeded initialization
Not sure this change makes sense, the code is more robust with ret set Fixes: CID1559178 Unused value Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -290,7 +290,7 @@ static int mux_packet_filter(Muxer *mux, MuxThreadContext *mt,
|
|||||||
{
|
{
|
||||||
MuxStream *ms = ms_from_ost(ost);
|
MuxStream *ms = ms_from_ost(ost);
|
||||||
const char *err_msg;
|
const char *err_msg;
|
||||||
int ret = 0;
|
int ret;
|
||||||
|
|
||||||
if (pkt && !ost->enc) {
|
if (pkt && !ost->enc) {
|
||||||
ret = of_streamcopy(&mux->of, ost, pkt);
|
ret = of_streamcopy(&mux->of, ost, pkt);
|
||||||
@@ -299,7 +299,6 @@ static int mux_packet_filter(Muxer *mux, MuxThreadContext *mt,
|
|||||||
else if (ret == AVERROR_EOF) {
|
else if (ret == AVERROR_EOF) {
|
||||||
av_packet_unref(pkt);
|
av_packet_unref(pkt);
|
||||||
pkt = NULL;
|
pkt = NULL;
|
||||||
ret = 0;
|
|
||||||
*stream_eof = 1;
|
*stream_eof = 1;
|
||||||
} else if (ret < 0)
|
} else if (ret < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Reference in New Issue
Block a user