Mercurial > libavcodec.hg
comparison mpeg12.c @ 1220:78a51075aacb libavcodec
10l
author | michaelni |
---|---|
date | Sun, 27 Apr 2003 13:44:01 +0000 |
parents | 358bbc952e27 |
children | 5642ebadf1b5 |
comparison
equal
deleted
inserted
replaced
1219:ad21a7b2349b | 1220:78a51075aacb |
---|---|
2239 } | 2239 } |
2240 #endif | 2240 #endif |
2241 for(;;) { | 2241 for(;;) { |
2242 /* find start next code */ | 2242 /* find start next code */ |
2243 start_code = find_start_code(&buf_ptr, buf_end); | 2243 start_code = find_start_code(&buf_ptr, buf_end); |
2244 if (start_code < 0){ | 2244 if (start_code < 0){ |
2245 printf("missing end of picture\n"); | 2245 // printf("missing end of picture\n"); |
2246 return FFMAX(1, buf_ptr - buf - s2->parse_context.last_index); | 2246 return FFMAX(0, buf_ptr - buf - s2->parse_context.last_index); |
2247 } | 2247 } |
2248 | 2248 |
2249 /* prepare data for next start code */ | 2249 /* prepare data for next start code */ |
2250 input_size = buf_end - buf_ptr; | 2250 input_size = buf_end - buf_ptr; |
2251 switch(start_code) { | 2251 switch(start_code) { |