comparison ogg.c @ 409:b6949d80b7a9 libavformat

move zero size hack from ogg.c to utils.c
author michael
date Sun, 04 Apr 2004 18:33:07 +0000
parents 237eeeb50fb8
children 7fa377b2f533
comparison
equal deleted inserted replaced
408:237eeeb50fb8 409:b6949d80b7a9
71 ogg_packet *op= &context->op; 71 ogg_packet *op= &context->op;
72 ogg_page og ; 72 ogg_page og ;
73 73
74 pts= av_rescale(pts, avctx->sample_rate, AV_TIME_BASE); 74 pts= av_rescale(pts, avctx->sample_rate, AV_TIME_BASE);
75 75
76 if(!size){
77 // av_log(avfcontext, AV_LOG_DEBUG, "zero packet\n");
78 return 0;
79 }
80 // av_log(avfcontext, AV_LOG_DEBUG, "M%d\n", size); 76 // av_log(avfcontext, AV_LOG_DEBUG, "M%d\n", size);
81 77
82 /* flush header packets so audio starts on a new page */ 78 /* flush header packets so audio starts on a new page */
83 79
84 if(!context->header_handled) { 80 if(!context->header_handled) {