summaryrefslogtreecommitdiff
path: root/libavformat/nutdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-11-16 09:56:04 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-11-16 09:56:04 +0000
commit09e151848a02f3c2b7a52ae1559f0e275056b62d (patch)
treefec6afac8dc438cba7ef050f934d7dc9cdeea935 /libavformat/nutdec.c
parent1ad20f96f2fe64a0af71ad346f3cc5f1c4086ea8 (diff)
downloadffmpeg-09e151848a02f3c2b7a52ae1559f0e275056b62d.tar.gz
removing unused code
Originally committed as revision 7096 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nutdec.c')
-rw-r--r--libavformat/nutdec.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index b3e49435de..1176c8a1db 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -27,18 +27,13 @@
#undef NDEBUG
#include <assert.h>
-static uint64_t get_v(ByteIOContext *bc/*, maxstuffing*/){
+static uint64_t get_v(ByteIOContext *bc){
uint64_t val = 0;
for(;;)
{
int tmp = get_byte(bc);
-// if(tmp=0x80){
-// if(!maxstuffing-- || val)
-// return -1;
-// }
-
if (tmp&0x80)
val= (val<<7) + tmp - 0x80;
else{
@@ -810,24 +805,6 @@ resync:
else if(stream_index == -2) return back_ptr;
assert(0);
- do{
- frame_code= get_byte(bc);
- if(frame_code == 'N'){
- pos= url_ftell(bc)-1;
- goto resync;
- }
- //FIXME consider pos_limit and eof
- size= decode_frame_header(nut, &flags, &pts, &stream_id, frame_code);
-
- if(size < 0)
- goto resync;
-
- url_fseek(bc, size, SEEK_CUR);
- }while(stream_id != stream_index || !(flags & FLAG_KEY));
- assert(nut->next_startcode == 0);
- av_log(s, AV_LOG_DEBUG, "read_timestamp success\n");
-
- return pts;
}
static int read_seek(AVFormatContext *s, int stream_index, int64_t pts, int flags){
@@ -898,7 +875,6 @@ AVInputFormat nut_demuxer = {
nut_read_packet,
nut_read_close,
read_seek,
-// nut_read_timestamp,
.extensions = "nut",
};
#endif