Created
October 1, 2012 15:21
-
-
Save JavaDeveloper/3812457 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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