diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2021-12-04 10:24:01 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2021-12-14 22:36:40 +0800 |
commit | 2f28f6c4b9bd31f0928cbbabae9a2ae41582b1e6 (patch) | |
tree | 42139a8e7f0258d4632eaca30dfb3ebc00e1bdc7 /libavformat/rtpdec_rfc4175.c | |
parent | 6cf55b9da2b41d5c2b8a0b6e4405dd84858cae35 (diff) | |
download | ffmpeg-2f28f6c4b9bd31f0928cbbabae9a2ae41582b1e6.tar.gz |
avformat/rtpdec_rfc4175: cosmetic changes
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat/rtpdec_rfc4175.c')
-rw-r--r-- | libavformat/rtpdec_rfc4175.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavformat/rtpdec_rfc4175.c b/libavformat/rtpdec_rfc4175.c index 7feefd2fff..a66e00d5fe 100644 --- a/libavformat/rtpdec_rfc4175.c +++ b/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, |