Mercurial > libavformat.hg
changeset 3006:fa2fb523fd6b libavformat
Fix info packet type, found by oded as well as the new pedantic const
warnings.
author | michael |
---|---|
date | Mon, 04 Feb 2008 00:33:52 +0000 |
parents | d1a8a747d85f |
children | bec20ba1e194 |
files | nutdec.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/nutdec.c Mon Feb 04 00:31:31 2008 +0000 +++ b/nutdec.c Mon Feb 04 00:33:52 2008 +0000 @@ -360,7 +360,7 @@ int chapter_id, i; int64_t value, end; char name[256], str_value[1024], type_str[256]; - const char *type= type_str; + const char *type; end= get_packetheader(nut, bc, 1, INFO_STARTCODE); end += url_ftell(bc); @@ -377,7 +377,8 @@ type= "UTF-8"; get_str(bc, str_value, sizeof(str_value)); }else if(value == -2){ - get_str(bc, type, sizeof(type)); + get_str(bc, type_str, sizeof(type_str)); + type= type_str; get_str(bc, str_value, sizeof(str_value)); }else if(value == -3){ type= "s";