Mercurial > libavformat.hg
comparison nut.c @ 1167:d89d7ef290da libavformat
give AVInput/OutputFormat structs consistent names
author | mru |
---|---|
date | Sun, 09 Jul 2006 23:40:53 +0000 |
parents | 04c964e51da0 |
children | d18cc9a1fd02 |
comparison
equal
deleted
inserted
replaced
1166:e89500dd9064 | 1167:d89d7ef290da |
---|---|
1417 av_freep(&nut->stream); | 1417 av_freep(&nut->stream); |
1418 | 1418 |
1419 return 0; | 1419 return 0; |
1420 } | 1420 } |
1421 | 1421 |
1422 static AVInputFormat nut_iformat = { | 1422 static AVInputFormat nut_demuxer = { |
1423 "nut", | 1423 "nut", |
1424 "nut format", | 1424 "nut format", |
1425 sizeof(NUTContext), | 1425 sizeof(NUTContext), |
1426 nut_probe, | 1426 nut_probe, |
1427 nut_read_header, | 1427 nut_read_header, |
1431 nut_read_timestamp, | 1431 nut_read_timestamp, |
1432 .extensions = "nut", | 1432 .extensions = "nut", |
1433 }; | 1433 }; |
1434 | 1434 |
1435 #ifdef CONFIG_MUXERS | 1435 #ifdef CONFIG_MUXERS |
1436 static AVOutputFormat nut_oformat = { | 1436 static AVOutputFormat nut_muxer = { |
1437 "nut", | 1437 "nut", |
1438 "nut format", | 1438 "nut format", |
1439 "video/x-nut", | 1439 "video/x-nut", |
1440 "nut", | 1440 "nut", |
1441 sizeof(NUTContext), | 1441 sizeof(NUTContext), |
1454 }; | 1454 }; |
1455 #endif //CONFIG_MUXERS | 1455 #endif //CONFIG_MUXERS |
1456 | 1456 |
1457 int nut_init(void) | 1457 int nut_init(void) |
1458 { | 1458 { |
1459 av_register_input_format(&nut_iformat); | 1459 av_register_input_format(&nut_demuxer); |
1460 #ifdef CONFIG_MUXERS | 1460 #ifdef CONFIG_MUXERS |
1461 av_register_output_format(&nut_oformat); | 1461 av_register_output_format(&nut_muxer); |
1462 #endif //CONFIG_MUXERS | 1462 #endif //CONFIG_MUXERS |
1463 return 0; | 1463 return 0; |
1464 } | 1464 } |