[FFmpeg-cvslog] h263: remove unused ff_h263_find_resync_marker()

Michael Niedermayer git at videolan.org
Sat Nov 30 01:35:24 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Nov 30 00:58:33 2013 +0100| [2d2b363c652403ac0bda129912e1910aacdaa3fc] | committer: Michael Niedermayer

h263: remove unused ff_h263_find_resync_marker()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2d2b363c652403ac0bda129912e1910aacdaa3fc
---

 libavcodec/h263.h       |    1 -
 libavcodec/ituh263dec.c |   24 ------------------------
 2 files changed, 25 deletions(-)

diff --git a/libavcodec/h263.h b/libavcodec/h263.h
index dfefea9..962d44c 100644
--- a/libavcodec/h263.h
+++ b/libavcodec/h263.h
@@ -120,7 +120,6 @@ int av_const h263_get_picture_format(int width, int height);
 
 void ff_clean_h263_qscales(MpegEncContext *s);
 int ff_h263_resync(MpegEncContext *s);
-const uint8_t *ff_h263_find_resync_marker(MpegEncContext *s, const uint8_t *p, const uint8_t *end);
 int ff_h263_get_gob_height(MpegEncContext *s);
 void ff_h263_encode_motion(MpegEncContext * s, int val, int f_code);
 
diff --git a/libavcodec/ituh263dec.c b/libavcodec/ituh263dec.c
index 5a61e9c..71e36c1 100644
--- a/libavcodec/ituh263dec.c
+++ b/libavcodec/ituh263dec.c
@@ -200,30 +200,6 @@ static int h263_decode_gob_header(MpegEncContext *s)
 }
 
 /**
- * Find the next resync_marker.
- * @param p pointer to buffer to scan
- * @param end pointer to the end of the buffer
- * @return pointer to the next resync_marker, or end if none was found
- */
-const uint8_t *ff_h263_find_resync_marker(MpegEncContext *s, const uint8_t *av_restrict p, const uint8_t *av_restrict end)
-{
-    av_assert2(p < end);
-
-    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] >> (23-prefix_len)) == 1)) return p - 1;
-                else if (!p[ 1] && ((p[2] >> (23-prefix_len)) == 1)) return p;
-            }
-        }
-    }
-    return end+2;
-}
-
-/**
  * Decode the group of blocks / video packet header.
  * @return bit position of the resync_marker, or <0 if none was found
  */



More information about the ffmpeg-cvslog mailing list