mirror of
https://github.com/androidx/media.git
synced 2025-05-09 16:40:55 +08:00
Fix some typos
PiperOrigin-RevId: 291750515
This commit is contained in:
parent
8da0e27d2e
commit
bb9b3fd45e
@ -203,7 +203,7 @@ import java.nio.ByteBuffer;
|
||||
* @param context Decoder context.
|
||||
* @param surface Output surface.
|
||||
* @param outputBuffer Output buffer with the decoded frame.
|
||||
* @return {@link #GAV1_OK} if successful, {@link #GAV1_ERROR} if an error occured.
|
||||
* @return {@link #GAV1_OK} if successful, {@link #GAV1_ERROR} if an error occurred.
|
||||
*/
|
||||
private native int gav1RenderFrame(
|
||||
long context, Surface surface, VideoDecoderOutputBuffer outputBuffer);
|
||||
@ -225,10 +225,10 @@ import java.nio.ByteBuffer;
|
||||
private native String gav1GetErrorMessage(long context);
|
||||
|
||||
/**
|
||||
* Returns whether an error occured.
|
||||
* Returns whether an error occurred.
|
||||
*
|
||||
* @param context Decoder context.
|
||||
* @return {@link #GAV1_OK} if there was no error, {@link #GAV1_ERROR} if an error occured.
|
||||
* @return {@link #GAV1_OK} if there was no error, {@link #GAV1_ERROR} if an error occurred.
|
||||
*/
|
||||
private native int gav1CheckError(long context);
|
||||
}
|
||||
|
@ -41,9 +41,9 @@ public final class MpegAudioUtil {
|
||||
public int samplesPerFrame;
|
||||
|
||||
/**
|
||||
* Populates the fields in this instance to reflect the the MPEG audio header in {@code
|
||||
* headerData}, returning whether the header was valid. If false, the values of the fields in
|
||||
* this instance will not be updated.
|
||||
* Populates the fields in this instance to reflect the MPEG audio header in {@code headerData},
|
||||
* returning whether the header was valid. If false, the values of the fields in this instance
|
||||
* will not be updated.
|
||||
*
|
||||
* @param headerData Header data to parse.
|
||||
* @return True if the fields were populated. False otherwise, indicating that {@code
|
||||
|
@ -139,7 +139,7 @@ public final class SsaDecoder extends SimpleSubtitleDecoder {
|
||||
* starts with {@code [} (i.e. the title of the next section).
|
||||
*
|
||||
* @param data A {@link ParsableByteArray} with {@link ParsableByteArray#getPosition() position}
|
||||
* set to the beginning of of the first line after {@code [Script Info]}.
|
||||
* set to the beginning of the first line after {@code [Script Info]}.
|
||||
*/
|
||||
private void parseScriptInfo(ParsableByteArray data) {
|
||||
@Nullable String currentLine;
|
||||
@ -175,7 +175,7 @@ public final class SsaDecoder extends SimpleSubtitleDecoder {
|
||||
* starts with {@code [} (i.e. the title of the next section).
|
||||
*
|
||||
* @param data A {@link ParsableByteArray} with {@link ParsableByteArray#getPosition()} pointing
|
||||
* at the beginning of of the first line after {@code [V4+ Styles]}.
|
||||
* at the beginning of the first line after {@code [V4+ Styles]}.
|
||||
*/
|
||||
private static Map<String, SsaStyle> parseStyles(ParsableByteArray data) {
|
||||
Map<String, SsaStyle> styles = new LinkedHashMap<>();
|
||||
|
@ -89,7 +89,7 @@ public final class MappingTrackSelectorTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void selectTracks_audioAndVideo_sameOrderAsRenderers_mappedToCorectRenderer()
|
||||
public void selectTracks_audioAndVideo_sameOrderAsRenderers_mappedToCorrectRenderer()
|
||||
throws ExoPlaybackException {
|
||||
FakeMappingTrackSelector trackSelector = new FakeMappingTrackSelector();
|
||||
RendererCapabilities[] rendererCapabilities =
|
||||
@ -103,7 +103,7 @@ public final class MappingTrackSelectorTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void selectTracks_audioAndVideo_reverseOrderToRenderers_mappedToCorectRenderer()
|
||||
public void selectTracks_audioAndVideo_reverseOrderToRenderers_mappedToCorrectRenderer()
|
||||
throws ExoPlaybackException {
|
||||
FakeMappingTrackSelector trackSelector = new FakeMappingTrackSelector();
|
||||
TrackGroupArray trackGroups = new TrackGroupArray(VIDEO_TRACK_GROUP, AUDIO_TRACK_GROUP);
|
||||
|
Loading…
x
Reference in New Issue
Block a user