Merge commit '12251f997bbc0abb93be39c51021e6d404ca385f'
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 24 Feb 2015 22:37:50 +0000 (23:37 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 24 Feb 2015 22:37:54 +0000 (23:37 +0100)
* commit '12251f997bbc0abb93be39c51021e6d404ca385f':
  rtpdec: Remove unnecessary checks

Merged-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/rtpdec_h263_rfc2190.c
libavformat/rtpdec_latm.c

index c9b27a8..1800a26 100644 (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);
index 9bc2034..8527bff 100644 (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);