| Index: webrtc/test/fuzzers/h264_bitstream_parser_fuzzer.cc
|
| diff --git a/webrtc/test/fuzzers/audio_decoder_isac_incoming_packet_fuzzer.cc b/webrtc/test/fuzzers/h264_bitstream_parser_fuzzer.cc
|
| similarity index 68%
|
| copy from webrtc/test/fuzzers/audio_decoder_isac_incoming_packet_fuzzer.cc
|
| copy to webrtc/test/fuzzers/h264_bitstream_parser_fuzzer.cc
|
| index 9e490d3d4ad968a5fa0e81305bdd958e79e21d18..5661188b5d675ee3577c2217f0d86c6b1b1c0c98 100644
|
| --- a/webrtc/test/fuzzers/audio_decoder_isac_incoming_packet_fuzzer.cc
|
| +++ b/webrtc/test/fuzzers/h264_bitstream_parser_fuzzer.cc
|
| @@ -7,13 +7,15 @@
|
| * in the file PATENTS. All contributing project authors may
|
| * be found in the AUTHORS file in the root of the source tree.
|
| */
|
| +#include <stdint.h>
|
|
|
| -#include "webrtc/modules/audio_coding/codecs/isac/main/include/audio_decoder_isac.h"
|
| -#include "webrtc/test/fuzzers/audio_decoder_fuzzer.h"
|
| +#include "webrtc/common_video/h264/h264_bitstream_parser.h"
|
|
|
| namespace webrtc {
|
| void FuzzOneInput(const uint8_t* data, size_t size) {
|
| - AudioDecoderIsac dec(16000);
|
| - FuzzAudioDecoderIncomingPacket(data, size, &dec);
|
| + H264BitstreamParser h264_bitstream_parser;
|
| + h264_bitstream_parser.ParseBitstream(data, size);
|
| + int qp;
|
| + h264_bitstream_parser.GetLastSliceQp(&qp);
|
| }
|
| } // namespace webrtc
|
|
|