OLD | NEW |
1 /* | 1 /* |
2 * nut | 2 * nut |
3 * Copyright (c) 2004-2007 Michael Niedermayer | 3 * Copyright (c) 2004-2007 Michael Niedermayer |
4 * | 4 * |
5 * This file is part of FFmpeg. | 5 * This file is part of FFmpeg. |
6 * | 6 * |
7 * FFmpeg is free software; you can redistribute it and/or | 7 * FFmpeg is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Lesser General Public | 8 * modify it under the terms of the GNU Lesser General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2.1 of the License, or (at your option) any later version. | 10 * version 2.1 of the License, or (at your option) any later version. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 sp->pos= pos; | 62 sp->pos= pos; |
63 sp->back_ptr= back_ptr; | 63 sp->back_ptr= back_ptr; |
64 sp->ts= ts; | 64 sp->ts= ts; |
65 av_tree_insert(&nut->syncpoints, sp, ff_nut_sp_pos_cmp, &node); | 65 av_tree_insert(&nut->syncpoints, sp, ff_nut_sp_pos_cmp, &node); |
66 if(node){ | 66 if(node){ |
67 av_free(sp); | 67 av_free(sp); |
68 av_free(node); | 68 av_free(node); |
69 } | 69 } |
70 } | 70 } |
71 | 71 |
| 72 static void enu_free(void *opaque, void *elem) |
| 73 { |
| 74 av_free(elem); |
| 75 } |
| 76 |
| 77 void ff_nut_free_sp(NUTContext *nut) |
| 78 { |
| 79 av_tree_enumerate(nut->syncpoints, NULL, NULL, enu_free); |
| 80 av_tree_destroy(nut->syncpoints); |
| 81 } |
| 82 |
72 const Dispositions ff_nut_dispositions[] = { | 83 const Dispositions ff_nut_dispositions[] = { |
73 {"default" , AV_DISPOSITION_DEFAULT}, | 84 {"default" , AV_DISPOSITION_DEFAULT}, |
74 {"dub" , AV_DISPOSITION_DUB}, | 85 {"dub" , AV_DISPOSITION_DUB}, |
75 {"original" , AV_DISPOSITION_ORIGINAL}, | 86 {"original" , AV_DISPOSITION_ORIGINAL}, |
76 {"comment" , AV_DISPOSITION_COMMENT}, | 87 {"comment" , AV_DISPOSITION_COMMENT}, |
77 {"lyrics" , AV_DISPOSITION_LYRICS}, | 88 {"lyrics" , AV_DISPOSITION_LYRICS}, |
78 {"karaoke" , AV_DISPOSITION_KARAOKE}, | 89 {"karaoke" , AV_DISPOSITION_KARAOKE}, |
79 {"" , 0} | 90 {"" , 0} |
80 }; | 91 }; |
81 | 92 |
| 93 const AVMetadataConv ff_nut_metadata_conv[] = { |
| 94 { "Author", "artist" }, |
| 95 { "X-CreationTime", "date" }, |
| 96 { "CreationTime", "date" }, |
| 97 { "SourceFilename", "filename" }, |
| 98 { "X-Language", "language" }, |
| 99 { "X-Disposition", "disposition" }, |
| 100 { "X-Replaces", "replaces" }, |
| 101 { "X-Depends", "depends" }, |
| 102 { "X-Uses", "uses" }, |
| 103 { "X-UsesFont", "usesfont" }, |
| 104 { 0 }, |
| 105 }; |
OLD | NEW |