[FFmpeg-cvslog] r17133 - in trunk/libavcodec: cavs.h cavs_parser.c cavsdec.c
stefang
subversion
Tue Feb 10 17:34:45 CET 2009
Author: stefang
Date: Tue Feb 10 17:34:45 2009
New Revision: 17133
Log:
do not check for minimum slice start code, 0x00000100 is valid
Modified:
trunk/libavcodec/cavs.h
trunk/libavcodec/cavs_parser.c
trunk/libavcodec/cavsdec.c
Modified: trunk/libavcodec/cavs.h
==============================================================================
--- trunk/libavcodec/cavs.h Tue Feb 10 15:27:16 2009 (r17132)
+++ trunk/libavcodec/cavs.h Tue Feb 10 17:34:45 2009 (r17133)
@@ -25,7 +25,6 @@
#include "dsputil.h"
#include "mpegvideo.h"
-#define SLICE_MIN_START_CODE 0x00000101
#define SLICE_MAX_START_CODE 0x000001af
#define EXT_START_CODE 0x000001b5
#define USER_START_CODE 0x000001b2
Modified: trunk/libavcodec/cavs_parser.c
==============================================================================
--- trunk/libavcodec/cavs_parser.c Tue Feb 10 15:27:16 2009 (r17132)
+++ trunk/libavcodec/cavs_parser.c Tue Feb 10 17:34:45 2009 (r17133)
@@ -60,7 +60,7 @@ static int cavs_find_frame_end(ParseCont
for(; i<buf_size; i++){
state= (state<<8) | buf[i];
if((state&0xFFFFFF00) == 0x100){
- if(state < SLICE_MIN_START_CODE || state > SLICE_MAX_START_CODE){
+ if(state > SLICE_MAX_START_CODE){
pc->frame_start_found=0;
pc->state=-1;
return i-3;
Modified: trunk/libavcodec/cavsdec.c
==============================================================================
--- trunk/libavcodec/cavsdec.c Tue Feb 10 15:27:16 2009 (r17132)
+++ trunk/libavcodec/cavsdec.c Tue Feb 10 17:34:45 2009 (r17133)
@@ -678,8 +678,7 @@ static int cavs_decode_frame(AVCodecCont
//mpeg_decode_user_data(avctx,buf_ptr, input_size);
break;
default:
- if (stc >= SLICE_MIN_START_CODE &&
- stc <= SLICE_MAX_START_CODE) {
+ if (stc <= SLICE_MAX_START_CODE) {
init_get_bits(&s->gb, buf_ptr, input_size);
decode_slice_header(h, &s->gb);
}
More information about the ffmpeg-cvslog
mailing list