Browse Source

Check for resync marker based on vop coding type- vop_fcode_forward and vop_fcode_backward L

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Anuj Mittal Michael Niedermayer 13 years ago
parent
commit
8d2e0e2c70
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      libavcodec/ituh263dec.c

+ 3
- 2
libavcodec/ituh263dec.c View File

@@ -214,10 +214,11 @@ const uint8_t *ff_h263_find_resync_marker(MpegEncContext *s, const uint8_t *av_r
end-=2;
p++;
if(s->resync_marker){
int prefix_len = ff_mpeg4_get_video_packet_prefix_length(s);
for(;p<end; p+=2){
if(!*p){
if (!p[-1] && p[1]) return p - 1;
else if(!p[ 1] && p[2]) return p;
if (!p[-1] && ((p[1] >> (23-prefix_len)) == 1)) return p - 1;
else if (!p[ 1] && ((p[2] >> (23-prefix_len)) == 1)) return p;
}
}
}


Loading…
Cancel
Save