Message ID | 20230707094847.25324-7-anton@khirnov.net |
---|---|
State | Accepted |
Commit | c9a99ffe5120e300638e1d2f6634221e17fa5234 |
Headers | show |
Series | [FFmpeg-devel,01/22] lavc/encode: print separate messages for unknown and unsupported formats | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 60e09866af..432e2fced9 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -595,6 +595,8 @@ static int ifilter_bind_ist(InputFilter *ifilter, InputStream *ist) InputFilterPriv *ifp = ifp_from_ifilter(ifilter); int ret; + av_assert0(!ifp->ist); + ifp->ist = ist; ifp->type_src = ist->st->codecpar->codec_type; @@ -654,6 +656,8 @@ void ofilter_bind_ost(OutputFilter *ofilter, OutputStream *ost) FilterGraph *fg = ofilter->graph; const AVCodec *c = ost->enc_ctx->codec; + av_assert0(!ofilter->ost); + ofilter->ost = ost; av_freep(&ofilter->linklabel);