[vlc-commits] avformat demux: don't access removed info
Rafaël Carré
git at videolan.org
Sun Mar 4 22:42:02 CET 2012
vlc/vlc-2.0 | branch: master | Rafaël Carré <funman at videolan.org> | Sat Mar 3 00:03:03 2012 +0900| [b8f396cd21b787413278fbb3c2b7b69173cf0436] | committer: Rafaël Carré
avformat demux: don't access removed info
Palette data is now transmitted as a side data in AVPacket
(cherry picked from commit 4ca6ef05e16554c71c7480a7b4df59ab3a43f6c4)
Signed-off-by: KO Myung-Hun <komh at chollian.net>
Signed-off-by: Rafaël Carré <funman at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=b8f396cd21b787413278fbb3c2b7b69173cf0436
---
modules/demux/avformat/demux.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 0fed02d..6c492c8 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -302,11 +302,15 @@ int OpenDemux( vlc_object_t *p_this )
fmt.video.i_width = cc->width;
fmt.video.i_height = cc->height;
+#if LIBAVCODEC_VERSION_MAJOR < 54
if( cc->palctrl )
{
fmt.video.p_palette = malloc( sizeof(video_palette_t) );
*fmt.video.p_palette = *(video_palette_t *)cc->palctrl;
}
+#else
+# warning FIXME: implement palette transmission
+#endif
psz_type = "video";
fmt.video.i_frame_rate = cc->time_base.den;
fmt.video.i_frame_rate_base = cc->time_base.num * __MAX( cc->ticks_per_frame, 1 );
More information about the vlc-commits
mailing list