You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user