avcodec/bsf/dts2pts: fix return 0 on error path

This commit is contained in:
Zhao Zhili
2025-10-13 20:54:10 +08:00
committed by Zhao Zhili
parent 91b2fe71cc
commit 5f15734d92

View File

@@ -261,6 +261,7 @@ static int h264_filter(AVBSFContext *ctx)
if (!sps) {
av_log(ctx, AV_LOG_ERROR, "No active SPS for a slice\n");
ret = AVERROR_INVALIDDATA;
goto fail;
}
// Initialize the SPS struct with the fields ff_h264_init_poc() cares about