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>
pull/113/head^2
Martin Storsjö 10 years ago
parent c82bf15dca
commit 12251f997b
  1. 2
      libavformat/rtpdec_h263_rfc2190.c
  2. 2
      libavformat/rtpdec_latm.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);

@ -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);

Loading…
Cancel
Save