Verify all media codec IDs and key configuration bounds
This commit is contained in:
1 parent
876a5a65ec
commit
305eacbe95
2 files changed
+21
-2
No files matched your search
@@ -184,7 +184,7 @@ private slots:
|
||||
memset(frame->data[plane] + y * frame->linesize[plane], plane ? 128 : 80, plane ? 80 : 160);
|
||||
frame->pts = 0; QCOMPARE(avcodec_send_frame(context, frame), 0);
|
||||
AVPacket* packet = av_packet_alloc(); QVERIFY(packet); QCOMPARE(avcodec_receive_packet(context, packet), 0);
|
||||
QByteArray video(reinterpret_cast<const char*>(packet->data), packet->size);
|
||||
QByteArray video(4, '\0'); video.append(reinterpret_cast<const char*>(packet->data), packet->size);
|
||||
av_packet_free(&packet); av_frame_free(&frame); avcodec_free_context(&context);
|
||||
std::unique_ptr<opus_codec_encoder_t, decltype(&opus_codec_encoder_destroy)> opus(nullptr, opus_codec_encoder_destroy);
|
||||
uint64_t sampleFrame = 0;
|
||||
|
||||
Reference in new issue
Block a user