Commit 12251f99 authored by Martin Storsjö's avatar Martin Storsjö

rtpdec: Remove unnecessary checks

The free function of a depacketizer won't be called if data is NULL.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent c82bf15d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment