Browse Source

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>
tags/n2.6
Martin Storsjö 11 years ago
parent
commit
12251f997b
2 changed files with 0 additions and 4 deletions
  1. +0
    -2
      libavformat/rtpdec_h263_rfc2190.c
  2. +0
    -2
      libavformat/rtpdec_latm.c

+ 0
- 2
libavformat/rtpdec_h263_rfc2190.c View File

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


+ 0
- 2
libavformat/rtpdec_latm.c View File

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