Commit 1c5d9dd2 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '12251f99'

* commit '12251f99':
  rtpdec: Remove unnecessary checks
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents cf958774 12251f99
...@@ -41,8 +41,6 @@ struct PayloadContext { ...@@ -41,8 +41,6 @@ struct PayloadContext {
static void h263_free_context(PayloadContext *data) static void h263_free_context(PayloadContext *data)
{ {
if (!data)
return;
if (data->buf) { if (data->buf) {
uint8_t *p; uint8_t *p;
avio_close_dyn_buf(data->buf, &p); avio_close_dyn_buf(data->buf, &p);
......
...@@ -33,8 +33,6 @@ struct PayloadContext { ...@@ -33,8 +33,6 @@ struct PayloadContext {
static void latm_free_context(PayloadContext *data) static void latm_free_context(PayloadContext *data)
{ {
if (!data)
return;
if (data->dyn_buf) { if (data->dyn_buf) {
uint8_t *p; uint8_t *p;
avio_close_dyn_buf(data->dyn_buf, &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