summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--av_sub.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/av_sub.c b/av_sub.c
index eba46fa6d8..9a7c832594 100644
--- a/av_sub.c
+++ b/av_sub.c
@@ -97,7 +97,9 @@ int decode_avsub(struct sh_sub *sh, uint8_t **data, int *size, double *pts, doub
break;
}
}
+#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(52, 82, 0)
if (got_sub)
- ; // TODO: free sub once there is a free function...
+ avsubtitle_free(&sub);
+#endif
return new_type;
}