improve inst.sh, menubar, pankeyframe.png
[goodguy/history.git] / cinelerra-5.1 / cinelerra / ffmpeg.h
index 4860c0021dd1c9a9d868d5a435e4e1e9b263620f..d60337fb2280fae079886751a8e423c4ea9380b6 100644 (file)
@@ -40,12 +40,14 @@ extern "C" {
 class FFPacket  {
        AVPacket pkt;
 public:
-       FFPacket();
-       ~FFPacket();
-       void init();
        operator AVPacket*() { return &pkt; }
        operator AVPacket&() { return pkt; }
        AVPacket *operator ->() { return &pkt; }
+
+       void init();
+       void finit();
+       FFPacket() { init(); }
+       ~FFPacket() { finit(); }
 };
 
 class FFrame : public ListItem<FFrame> {
@@ -261,7 +263,8 @@ public:
 
        static void set_option_path(char *path, const char *fmt, ...);
        static void get_option_path(char *path, const char *type, const char *spec);
-       static int get_format(char *format, const char *path, char *spec);
+       static int get_format(char *format, const char *path, const char *spec);
+       static int get_codec(char *codec, const char *path, const char *spec);
        static int scan_option_line(char *cp,char *tag,char *val);
        static int load_defaults(const char *path, const char *type,
                 char *codec, char *codec_options, int len);