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:
parent
c82bf15dca
commit
12251f997b
2 changed files with 0 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue