Mercurial > libavcodec.hg
diff h264.c @ 8762:4f1567ce75c4 libavcodec
Replace hard-coded SEI type constants with symbolic names
Patch by Ivan Schreter ( schreter gmx net )
author | superdump |
---|---|
date | Sun, 08 Feb 2009 20:28:12 +0000 |
parents | ecabe55b66bb |
children | e91ea98d868a |
line wrap: on
line diff
--- a/h264.c Sun Feb 08 18:56:33 2009 +0000 +++ b/h264.c Sun Feb 08 20:28:12 2009 +0000 @@ -6865,11 +6865,11 @@ }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;