diff options
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtpdec_qt.c | 6 | ||||
-rw-r--r-- | libavformat/rtpdec_xiph.c | 2 | ||||
-rw-r--r-- | libavformat/smjpegdec.c | 3 |
3 files changed, 6 insertions, 5 deletions
diff --git a/libavformat/rtpdec_qt.c b/libavformat/rtpdec_qt.c index 4decdca..f0f01d9 100644 --- a/libavformat/rtpdec_qt.c +++ b/libavformat/rtpdec_qt.c @@ -99,7 +99,7 @@ static int qt_rtp_parse_packet(AVFormatContext *s, PayloadContext *qt, if (!is_start || !is_finish) { av_log_missing_feature(s, "RTP-X-QT with payload description " "split over several packets", 1); - return AVERROR(ENOSYS); + return AVERROR_PATCHWELCOME; } skip_bits(&gb, 12); // reserved data_len = get_bits(&gb, 16); @@ -162,7 +162,7 @@ static int qt_rtp_parse_packet(AVFormatContext *s, PayloadContext *qt, if (has_packet_info) { av_log_missing_feature(s, "RTP-X-QT with packet specific info", 1); - return AVERROR(ENOSYS); + return AVERROR_PATCHWELCOME; } alen = len - avio_tell(&pb); @@ -225,7 +225,7 @@ static int qt_rtp_parse_packet(AVFormatContext *s, PayloadContext *qt, default: /* unimplemented */ av_log_missing_feature(NULL, "RTP-X-QT with packing scheme 2", 1); - return AVERROR(ENOSYS); + return AVERROR_PATCHWELCOME; } } diff --git a/libavformat/rtpdec_xiph.c b/libavformat/rtpdec_xiph.c index ae10c78..773f4aa 100644 --- a/libavformat/rtpdec_xiph.c +++ b/libavformat/rtpdec_xiph.c @@ -242,7 +242,7 @@ static int get_base128(const uint8_t ** buf, const uint8_t * buf_end) /** * Based off parse_packed_headers in Vorbis RTP */ -static unsigned int +static int parse_packed_headers(const uint8_t * packed_headers, const uint8_t * packed_headers_end, AVCodecContext * codec, PayloadContext * xiph_data) diff --git a/libavformat/smjpegdec.c b/libavformat/smjpegdec.c index d1aad9f..9fcefe7 100644 --- a/libavformat/smjpegdec.c +++ b/libavformat/smjpegdec.c @@ -135,8 +135,9 @@ static int smjpeg_read_header(AVFormatContext *s) static int smjpeg_read_packet(AVFormatContext *s, AVPacket *pkt) { SMJPEGContext *sc = s->priv_data; - uint32_t dtype, ret, size, timestamp; + uint32_t dtype, size, timestamp; int64_t pos; + int ret; if (s->pb->eof_reached) return AVERROR_EOF; |