diff mpegvideo.h @ 1218:358bbc952e27 libavcodec

10l (returning negative number of consumed bytes if the first startcode of a frame was split between 2 buffers)
author michaelni
date Sun, 27 Apr 2003 01:11:26 +0000
parents fea03d2c4946
children 2fa34e615c76
line wrap: on
line diff
--- a/mpegvideo.h	Fri Apr 25 20:03:17 2003 +0000
+++ b/mpegvideo.h	Sun Apr 27 01:11:26 2003 +0000
@@ -205,8 +205,10 @@
     int index;
     int last_index;
     int buffer_size;
-    int state;
+    uint32_t state;             ///< contains the last few bytes in MSB order
     int frame_start_found;
+    int overread;               ///< the number of bytes which where irreversibly read from the next frame
+    int overread_index;         ///< the index into ParseContext.buffer of the overreaded bytes
 } ParseContext;
 
 struct MpegEncContext;
@@ -709,6 +711,7 @@
 void ff_emulated_edge_mc(MpegEncContext *s, uint8_t *src, int linesize, int block_w, int block_h, 
                                     int src_x, int src_y, int w, int h);
 char ff_get_pict_type_char(int pict_type);
+#define END_NOT_FOUND -100
 int ff_combine_frame( MpegEncContext *s, int next, uint8_t **buf, int *buf_size);
 void ff_print_debug_info(MpegEncContext *s, Picture *pict);