ffmpeg: add "FFmpeg" tag to PandaSystem

This commit is contained in:
rdb 2019-04-09 12:09:21 +02:00
parent 19b67c3674
commit 77d6a9f5c9

View File

@ -17,8 +17,8 @@
#include "ffmpegVideoCursor.h"
#include "ffmpegAudio.h"
#include "ffmpegAudioCursor.h"
#include "movieTypeRegistry.h"
#include "pandaSystem.h"
extern "C" {
#include <libavcodec/avcodec.h>
@ -129,6 +129,9 @@ init_libffmpeg() {
FfmpegVideo::register_with_read_factory();
FfmpegVideoCursor::register_with_read_factory();
PandaSystem *ps = PandaSystem::get_global_ptr();
ps->add_system("FFmpeg");
// Register ffmpeg as catch-all audiovideo type.
MovieTypeRegistry *reg = MovieTypeRegistry::get_global_ptr();
reg->register_audio_type(&FfmpegAudio::make, "*");