diff options
author | Martin Storsjö <martin@martin.st> | 2015-02-24 13:30:12 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-02-24 23:07:14 +0200 |
commit | 12251f997bbc0abb93be39c51021e6d404ca385f (patch) | |
tree | 0f1e9c8c09224f33f229de1a7f28c4e6b6f90496 /libavformat | |
parent | c82bf15dca00f67a701d126e47ea9075fc9459cb (diff) | |
download | ffmpeg-12251f997bbc0abb93be39c51021e6d404ca385f.tar.gz |
rtpdec: Remove unnecessary checks
The free function of a depacketizer won't be called if data is NULL.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtpdec_h263_rfc2190.c | 2 | ||||
-rw-r--r-- | libavformat/rtpdec_latm.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/libavformat/rtpdec_h263_rfc2190.c b/libavformat/rtpdec_h263_rfc2190.c index a7e8287f11..ae6e38ecfe 100644 --- a/libavformat/rtpdec_h263_rfc2190.c +++ b/libavformat/rtpdec_h263_rfc2190.c @@ -41,8 +41,6 @@ struct PayloadContext { static void h263_free_context(PayloadContext *data) { - if (!data) - return; if (data->buf) { uint8_t *p; avio_close_dyn_buf(data->buf, &p); diff --git a/libavformat/rtpdec_latm.c b/libavformat/rtpdec_latm.c index 9758efa4a2..2da0fbfbe0 100644 --- a/libavformat/rtpdec_latm.c +++ b/libavformat/rtpdec_latm.c @@ -33,8 +33,6 @@ struct PayloadContext { static void latm_free_context(PayloadContext *data) { - if (!data) - return; if (data->dyn_buf) { uint8_t *p; avio_close_dyn_buf(data->dyn_buf, &p); |