Commit bf054f74 authored by Oded Shimon's avatar Oded Shimon

update to libnut, use framecode table generator

Originally committed as revision 7115 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent a851cf8c
...@@ -18,34 +18,6 @@ static const CodecTag nut_tags[] = { ...@@ -18,34 +18,6 @@ static const CodecTag nut_tags[] = {
}; };
#ifdef CONFIG_MUXERS #ifdef CONFIG_MUXERS
nut_frame_table_input_t ft_default[] = {
// There must be atleast this safety net:
//{ 4128, 0, 0, 1, 0, 1 },
//{ flag, pts, stream, mul, size, count }
{ 8192, 0, 0, 1, 0, 1 }, // invalid 0x00
{ 56, 0, 0, 1, 0, 1 }, // safety net non key frame
{ 57, 0, 0, 1, 0, 1 }, // safety net key frame
{ 4128, 0, 0, 1, 0, 1 }, // one more safety net
{ 27, 0, 0, 1, 0, 1 }, // EOR frame
{ 1, 1, 1, 337, 336, 1 }, // used 82427 times
{ 1, 1, 1, 385, 384, 1 }, // used 56044 times
{ 0, 2, 0, 7, 6, 1 }, // used 20993 times
{ 0, 1, 0, 7, 6, 1 }, // used 10398 times
{ 1, 1, 1, 481, 480, 1 }, // used 3527 times
{ 1, 1, 1, 289, 288, 1 }, // used 2042 times
{ 1, 1, 1, 577, 576, 1 }, // used 1480 times
{ 1, 1, 1, 673, 672, 1 }, // used 862 times
{ 1, 1, 1, 769, 768, 1 }, // used 433 times
{ 1, 1, 1, 961, 960, 1 }, // used 191 times
{ 32, 2, 0, 101, 0, 101 }, // "1.2.0" => 14187
{ 32, -1, 0, 40, 0, 40 }, // "1.-1.0" => 5707
{ 32, 1, 0, 81, 0, 81 }, // "1.1.0" => 11159
{ 33, 1, 0, 11, 0, 11 }, // "1.1.1" => 1409
{ 105, 0, 0, 6, 0, 6 }, // checksum for video
{ 8192, 0, 0, 1, 0, 1 }, // invalid 0xFF
{ -1, 0, 0, 0, 0, 0 }, // end
};
static int av_write(void * h, size_t len, const uint8_t * buf) { static int av_write(void * h, size_t len, const uint8_t * buf) {
ByteIOContext * bc = h; ByteIOContext * bc = h;
put_buffer(bc, buf, len); put_buffer(bc, buf, len);
...@@ -65,7 +37,7 @@ static int nut_write_header(AVFormatContext * avf) { ...@@ -65,7 +37,7 @@ static int nut_write_header(AVFormatContext * avf) {
.write_index = 1, .write_index = 1,
.realtime_stream = 0, .realtime_stream = 0,
.max_distance = 32768, .max_distance = 32768,
.fti = ft_default .fti = NULL,
}; };
nut_stream_header_t * s; nut_stream_header_t * s;
int i; int i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment