[FFmpeg-cvslog] r17064 - in trunk/libavcodec: h264.c h264.h

superdump subversion
Sun Feb 8 21:28:12 CET 2009


Author: superdump
Date: Sun Feb  8 21:28:12 2009
New Revision: 17064

Log:
Replace hard-coded SEI type constants with symbolic names

Patch by Ivan Schreter ( schreter gmx net )

Modified:
   trunk/libavcodec/h264.c
   trunk/libavcodec/h264.h

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	Sun Feb  8 19:56:33 2009	(r17063)
+++ trunk/libavcodec/h264.c	Sun Feb  8 21:28:12 2009	(r17064)
@@ -6865,11 +6865,11 @@ static int decode_sei(H264Context *h){
         }while(get_bits(&s->gb, 8) == 255);
 
         switch(type){
-        case 1: // Picture timing SEI
+        case SEI_TYPE_PIC_TIMING: // Picture timing SEI
             if(decode_picture_timing(h) < 0)
                 return -1;
             break;
-        case 5:
+        case SEI_TYPE_USER_DATA_UNREGISTERED:
             if(decode_unregistered_user_data(h, size) < 0)
                 return -1;
             break;

Modified: trunk/libavcodec/h264.h
==============================================================================
--- trunk/libavcodec/h264.h	Sun Feb  8 19:56:33 2009	(r17063)
+++ trunk/libavcodec/h264.h	Sun Feb  8 21:28:12 2009	(r17064)
@@ -112,6 +112,15 @@ enum {
 };
 
 /**
+ * SEI message types
+ */
+typedef enum {
+    SEI_TYPE_PIC_TIMING              =  1, ///< picture timing
+    SEI_TYPE_USER_DATA_UNREGISTERED  =  5, ///< unregistered user data
+    SEI_TYPE_RECOVERY_POINT          =  6  ///< recovery point (frame # to decoder sync)
+} SEI_Type;
+
+/**
  * pic_struct in picture timing SEI message
  */
 typedef enum {




More information about the ffmpeg-cvslog mailing list