Browse code

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>

Martin Storsjö authored on 2015/02/24 20:30:12
Showing 2 changed files
... ...
@@ -41,8 +41,6 @@ struct PayloadContext {
41 41
 
42 42
 static void h263_free_context(PayloadContext *data)
43 43
 {
44
-    if (!data)
45
-        return;
46 44
     if (data->buf) {
47 45
         uint8_t *p;
48 46
         avio_close_dyn_buf(data->buf, &p);
... ...
@@ -33,8 +33,6 @@ struct PayloadContext {
33 33
 
34 34
 static void latm_free_context(PayloadContext *data)
35 35
 {
36
-    if (!data)
37
-        return;
38 36
     if (data->dyn_buf) {
39 37
         uint8_t *p;
40 38
         avio_close_dyn_buf(data->dyn_buf, &p);