[FFmpeg-cvslog] r11427 - trunk/libavformat/pva.c
ivo
subversion
Sat Jan 5 23:18:44 CET 2008
Author: ivo
Date: Sat Jan 5 23:18:44 2008
New Revision: 11427
Log:
validate streamid before use
Modified:
trunk/libavformat/pva.c
Modified: trunk/libavformat/pva.c
==============================================================================
--- trunk/libavformat/pva.c (original)
+++ trunk/libavformat/pva.c Sat Jan 5 23:18:44 2008
@@ -79,6 +79,10 @@ static int pva_read_packet(AVFormatConte
av_log(s, AV_LOG_ERROR, "invalid syncword\n");
return AVERROR(EIO);
}
+ if (streamid != PVA_VIDEO_PAYLOAD && streamid != PVA_AUDIO_PAYLOAD) {
+ av_log(s, AV_LOG_ERROR, "invalid streamid\n");
+ return AVERROR(EIO);
+ }
if (reserved != 0x55) {
av_log(s, AV_LOG_WARNING, "expected reserved byte to be 0x55\n");
}
More information about the ffmpeg-cvslog
mailing list