summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_mpegts.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-25 00:31:39 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-25 00:32:06 +0100
commit79052cd4ce4a8857cd1088cc69ba59506dfb1b81 (patch)
tree0fd3a32dc325c6eeec6cf17c47d8616b2e59016e /libavformat/rtpdec_mpegts.c
parentfa80b76b110c663809671f7254bc07513710c061 (diff)
parent078d43e23a7a3d64aafee8a58b380d3e139b3020 (diff)
Merge commit '078d43e23a7a3d64aafee8a58b380d3e139b3020'
* commit '078d43e23a7a3d64aafee8a58b380d3e139b3020': rtpdec: Free depacketizers if the init function failed Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtpdec_mpegts.c')
-rw-r--r--libavformat/rtpdec_mpegts.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/rtpdec_mpegts.c b/libavformat/rtpdec_mpegts.c
index c0c07fd0f8..6b9c6768dd 100644
--- a/libavformat/rtpdec_mpegts.c
+++ b/libavformat/rtpdec_mpegts.c
@@ -60,9 +60,6 @@ static int mpegts_handle_packet(AVFormatContext *ctx, PayloadContext *data,
// different ranges.
*timestamp = RTP_NOTS_VALUE;
- if (!data->ts)
- return AVERROR(EINVAL);
-
if (!buf) {
if (data->read_buf_index >= data->read_buf_size)
return AVERROR(EAGAIN);