avformat/rtpdec_rfc4175: cosmetic changes

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
pull/376/head
Limin Wang 3 years ago
parent 6cf55b9da2
commit 2f28f6c4b9
  1. 16
      libavformat/rtpdec_rfc4175.c

@ -195,17 +195,17 @@ static int rfc4175_parse_sdp_line(AVFormatContext *s, int st_index,
static int rfc4175_finalize_packet(PayloadContext *data, AVPacket *pkt,
int stream_index)
{
int ret;
int ret;
pkt->stream_index = stream_index;
ret = av_packet_from_data(pkt, data->frame, data->frame_size);
if (ret < 0) {
av_freep(&data->frame);
}
pkt->stream_index = stream_index;
ret = av_packet_from_data(pkt, data->frame, data->frame_size);
if (ret < 0) {
av_freep(&data->frame);
}
data->frame = NULL;
data->frame = NULL;
return ret;
return ret;
}
static int rfc4175_handle_packet(AVFormatContext *ctx, PayloadContext *data,

Loading…
Cancel
Save