mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-11 08:13:06 +00:00
avformat/tee: clean up local resources on program copy failure
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
committed by
Zhao Zhili
co-authored by
Zhao Zhili
parent
8518599cd1
commit
180a10647d
+1
-1
@@ -298,7 +298,7 @@ static int open_slave(AVFormatContext *avf, char *slave, TeeSlave *tee_slave)
|
||||
ret = av_program_copy(avf2, (const AVFormatContext *)avf, avf->programs[i]->id, 0);
|
||||
if (ret < 0) {
|
||||
av_log(avf, AV_LOG_ERROR, "unable to transfer program %d to child muxer\n", avf->programs[i]->id);
|
||||
return ret;
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user