Skip to content

Instantly share code, notes, and snippets.

@JavaDeveloper
Created October 1, 2012 15:22
Show Gist options
  • Save JavaDeveloper/3812460 to your computer and use it in GitHub Desktop.
Save JavaDeveloper/3812460 to your computer and use it in GitHub Desktop.
package com.example.media.api;
import android.view.Surface;
class VideoTrackDecoder extends AbstractTrackDecoder {
private static final String TAG = VideoTrackDecoder.class.getSimpleName();
private static final String VIDEO_PREFIX = "video/";
public VideoTrackDecoder(String path, Surface surface) {
super(path, VIDEO_PREFIX, surface);
}
@Override
protected void processDecodedData() {
if (outputBufferIndex < 0) {
return;
}
codec.releaseOutputBuffer(outputBufferIndex, true /* render */);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment