comparison libmpdemux/muxer_avi.c @ 17065:cf6bfdf41143

Clean up some muxer messages, patch by Corey Hickey bugfood-ml AT -fatooh/org- , small fixes by me
author reynaldo
date Tue, 29 Nov 2005 22:04:57 +0000
parents dd5be8f8d16d
children 934380353fd6
comparison
equal deleted inserted replaced
17064:a6ad13d29a70 17065:cf6bfdf41143
16 16
17 #include "muxer.h" 17 #include "muxer.h"
18 #include "aviheader.h" 18 #include "aviheader.h"
19 #include "ms_hdr.h" 19 #include "ms_hdr.h"
20 #include "mp_msg.h" 20 #include "mp_msg.h"
21 #include "help_mp.h"
21 22
22 extern char *info_name; 23 extern char *info_name;
23 extern char *info_artist; 24 extern char *info_artist;
24 extern char *info_genre; 25 extern char *info_genre;
25 extern char *info_subject; 26 extern char *info_subject;
275 uint32_t aspect = avi_aspect(muxer->def_v); 276 uint32_t aspect = avi_aspect(muxer->def_v);
276 off_t pos; 277 off_t pos;
277 struct avi_stream_info *vsi = muxer->def_v->priv; 278 struct avi_stream_info *vsi = muxer->def_v->priv;
278 int isodml = vsi->riffofspos > 0; 279 int isodml = vsi->riffofspos > 0;
279 280
281 mp_msg(MSGT_MUXER, MSGL_INFO, MSGTR_WritingHeader);
280 if (aspect == 0) { 282 if (aspect == 0) {
281 mp_msg(MSGT_MUXER, MSGL_INFO, "ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.\n"); 283 mp_msg(MSGT_MUXER, MSGL_INFO, "ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.\n");
282 } else { 284 } else {
283 mp_msg(MSGT_MUXER, MSGL_INFO, "ODML: vprp aspect is %d:%d.\n", aspect >> 16, aspect & 0xffff); 285 mp_msg(MSGT_MUXER, MSGL_INFO, "ODML: vprp aspect is %d:%d.\n", aspect >> 16, aspect & 0xffff);
284 } 286 }
640 } 642 }
641 643
642 static void avifile_write_index(muxer_t *muxer){ 644 static void avifile_write_index(muxer_t *muxer){
643 struct avi_stream_info *vsi = muxer->def_v->priv; 645 struct avi_stream_info *vsi = muxer->def_v->priv;
644 646
647 mp_msg(MSGT_MUXER, MSGL_INFO, MSGTR_WritingTrailer);
645 if (vsi->riffofspos > 0){ 648 if (vsi->riffofspos > 0){
646 avifile_odml_write_index(muxer); 649 avifile_odml_write_index(muxer);
647 } else { 650 } else {
648 avifile_write_standard_index(muxer); 651 avifile_write_standard_index(muxer);
649 } 652 }