avformat/sapdec: check return value of avcodec_parameters_copy()

Written in the dominant style of the surrounding code block.

Signed-off-by: Marth64 <marth64@proxyid.net>
pull/391/head
Marth64 4 months ago
parent a5f0daf843
commit 7332b1700e
  1. 4
      libavformat/sapdec.c

@ -179,7 +179,9 @@ static int sap_read_header(AVFormatContext *s)
goto fail;
}
st->id = i;
avcodec_parameters_copy(st->codecpar, sap->sdp_ctx->streams[i]->codecpar);
ret = avcodec_parameters_copy(st->codecpar, sap->sdp_ctx->streams[i]->codecpar);
if (ret < 0)
goto fail;
st->time_base = sap->sdp_ctx->streams[i]->time_base;
}

Loading…
Cancel
Save