Skip to content

Commit 88a360e

Browse files
committed
RTSPFormatPCM: cleanup
1 parent 8829e89 commit 88a360e

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/AudioTools/Communication/RTSP/RTSPFormat.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ class RTSPFormatPCM : public RTSPFormat {
178178
return 96; // dynamic otherwise
179179
}
180180

181-
protected:
182-
char payload_fromat[30];
181+
protected:
183182

184183
int sampleRate() { return cfg.sample_rate; }
185184
int channels() { return cfg.channels; }
@@ -200,12 +199,6 @@ class RTSPFormatPCM : public RTSPFormat {
200199
}
201200

202201

203-
// see https://en.wikipedia.org/wiki/RTP_payload_formats
204-
// 11 L16/%i/%i
205-
const char *payloadFormat() {
206-
snprintf(payload_fromat, sizeof(payload_fromat), "%d L16/%i/%i", rtpPayloadType(), sampleRate(), channels());
207-
return payload_fromat; // legacy usage retained for callers
208-
}
209202
};
210203

211204
/**

0 commit comments

Comments
 (0)