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>
This commit is contained in:
Martin Storsjö 2015-02-24 13:30:12 +02:00
parent c82bf15dca
commit 12251f997b
2 changed files with 0 additions and 4 deletions

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

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