Browse Source

1 goto 1 fix

Originally committed as revision 4946 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 20 years ago
parent
commit
8cb90572a2
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavcodec/mpegvideo.c

+ 4
- 0
libavcodec/mpegvideo.c View File

@@ -231,6 +231,10 @@ void ff_write_quant_matrix(PutBitContext *pb, int16_t *matrix){
const uint8_t *ff_find_start_code(const uint8_t * restrict p, const uint8_t *end, uint32_t * restrict state){
int i;

assert(p<=end);
if(p>=end)
return end;

for(i=0; i<3; i++){
uint32_t tmp= *state << 8;
*state= tmp + *(p++);


Loading…
Cancel
Save