mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 02:30:50 +00:00
exporting sounds
fixed movies export
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
package com.jpexs.decompiler.flash.flv;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class VIDEODATA extends DATA{
|
||||
public int frameType;
|
||||
public int codecId;
|
||||
public byte[] videoData;
|
||||
|
||||
public VIDEODATA(int frameType, int codecId, byte[] videoData) {
|
||||
this.frameType = frameType;
|
||||
this.codecId = codecId;
|
||||
this.videoData = videoData;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public byte[] getBytes() {
|
||||
ByteArrayOutputStream baos=new ByteArrayOutputStream();
|
||||
try{
|
||||
FLVOutputStream flv=new FLVOutputStream(baos);
|
||||
flv.writeUB(4, frameType);
|
||||
flv.writeUB(4, codecId);
|
||||
flv.write(videoData);
|
||||
}catch(IOException ex){
|
||||
//ignore
|
||||
}
|
||||
return baos.toByteArray();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user