Fix sample code in doc.

This commit is contained in:
H1Gdev 2020-07-15 18:34:15 +09:00
parent e9fbe868e5
commit c1f2186419

View File

@ -207,8 +207,8 @@ class SomeAudioVideoCalculator : public CalculatorBase {
// particular type. SetAny() has the same effect as explicitly // particular type. SetAny() has the same effect as explicitly
// setting the type to be the stream's type. // setting the type to be the stream's type.
cc->Outputs().Tag("VIDEO").Set<ImageFrame>(); cc->Outputs().Tag("VIDEO").Set<ImageFrame>();
cc->Outputs().Get("AUDIO", 0).Set<Matrix>; cc->Outputs().Get("AUDIO", 0).Set<Matrix>();
cc->Outputs().Get("AUDIO", 1).Set<Matrix>; cc->Outputs().Get("AUDIO", 1).Set<Matrix>();
return ::mediapipe::OkStatus(); return ::mediapipe::OkStatus();
} }
``` ```