[FFmpeg-cvslog] rtpdec_jpeg: Error out on other unsupported type values as well
Martin Storsjö
git at videolan.org
Thu Sep 13 15:29:02 CEST 2012
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Tue Sep 11 14:42:22 2012 +0300| [c3bcd22ed3f843f7240fa190df8f3daa2081290f] | committer: Martin Storsjö
rtpdec_jpeg: Error out on other unsupported type values as well
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c3bcd22ed3f843f7240fa190df8f3daa2081290f
---
libavformat/rtpdec_jpeg.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavformat/rtpdec_jpeg.c b/libavformat/rtpdec_jpeg.c
index 3f53887..944758d 100644
--- a/libavformat/rtpdec_jpeg.c
+++ b/libavformat/rtpdec_jpeg.c
@@ -246,6 +246,10 @@ static int jpeg_parse_packet(AVFormatContext *ctx, PayloadContext *jpeg,
"Unimplemented RTP/JPEG restart marker header.\n");
return AVERROR_PATCHWELCOME;
}
+ if (type > 1) {
+ av_log(ctx, AV_LOG_ERROR, "Unimplemented RTP/JPEG type %d\n", type);
+ return AVERROR_PATCHWELCOME;
+ }
/* Parse the quantization table header. */
if (off == 0) {
More information about the ffmpeg-cvslog
mailing list