[MPlayer-cvslog] r35422 - trunk/libmpdemux/demux_lavf.c
upsuper
subversion at mplayerhq.hu
Sat Nov 17 00:39:27 CET 2012
Author: upsuper
Date: Sat Nov 17 00:39:27 2012
New Revision: 35422
Log:
Print rotation information as identify msg
This patch prints rotation information in metadata of mov files as
identify message with tag "ID_VID_<vid>_ROTATE" to enable frontends
to rotate the video.
Modified:
trunk/libmpdemux/demux_lavf.c
Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c Thu Nov 15 19:44:19 2012 (r35421)
+++ trunk/libmpdemux/demux_lavf.c Sat Nov 17 00:39:27 2012 (r35422)
@@ -280,6 +280,7 @@ static void handle_stream(demuxer_t *dem
int stream_id;
AVDictionaryEntry *lang = av_dict_get(st->metadata, "language", NULL, 0);
AVDictionaryEntry *title= av_dict_get(st->metadata, "title", NULL, 0);
+ AVDictionaryEntry *rot = av_dict_get(st->metadata, "rotate", NULL, 0);
int g;
switch(codec->codec_type){
@@ -399,6 +400,8 @@ static void handle_stream(demuxer_t *dem
sh_video->i_bps=codec->bit_rate/8;
if (title && title->value)
mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_VID_%d_NAME=%s\n", priv->video_streams, title->value);
+ if (rot && rot->value)
+ mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_VID_%d_ROTATE=%s\n", priv->video_streams, rot->value);
mp_msg(MSGT_DEMUX,MSGL_DBG2,"aspect= %d*%d/(%d*%d)\n",
codec->width, codec->sample_aspect_ratio.num,
codec->height, codec->sample_aspect_ratio.den);
More information about the MPlayer-cvslog
mailing list