diff --git a/libavformat/sapenc.c b/libavformat/sapenc.c index ca133f561f..0c3e95edd6 100644 --- a/libavformat/sapenc.c +++ b/libavformat/sapenc.c @@ -209,7 +209,7 @@ static int sap_write_header(AVFormatContext *s) pos += strlen(&sap->ann[pos]) + 1; if (av_sdp_create(contexts, s->nb_streams, &sap->ann[pos], - sap->ann_size - pos)) { + sap->ann_size - pos)) { ret = AVERROR_INVALIDDATA; goto fail; }