Revision f23938f5 libavformat/rmdec.c

View differences:

libavformat/rmdec.c
138 138
                return -1;
139 139
            }
140 140

  
141
            if(sub_packet_size <= 0){
142
                av_log(s, AV_LOG_ERROR, "sub_packet_size is invalid\n");
143
                return -1;
144
            }
145

  
141 146
            if (!strcmp(buf, "cook")) st->codec->codec_id = CODEC_ID_COOK;
142 147
            else if (!strcmp(buf, "sipr")) st->codec->codec_id = CODEC_ID_SIPR;
143 148
            else st->codec->codec_id = CODEC_ID_ATRAC3;

Also available in: Unified diff