]> git.sesse.net Git - mlt/commitdiff
Revoke special handling for vorbis.
authorDan Dennedy <dan@dennedy.org>
Fri, 18 Jun 2010 06:29:13 +0000 (23:29 -0700)
committerDan Dennedy <dan@dennedy.org>
Fri, 18 Jun 2010 06:29:13 +0000 (23:29 -0700)
It is no longer needed for Ogg and messes up WebM output.

src/modules/avformat/consumer_avformat.c

index c0167eae119586be5c4084482053383454e0767d..7cd56e0a9c780c920eac7de635b62a00eb687dba 100644 (file)
@@ -1235,10 +1235,7 @@ static void *consumer_thread( void *arg )
                                                mlt_log_debug( MLT_CONSUMER_SERVICE( this ), " frame_size %d\n", codec->frame_size );
                                                if ( i == 0 )
                                                {
-                                                       if ( audio_codec_id == CODEC_ID_VORBIS )
-                                                               audio_pts = (double)codec->coded_frame->pts * av_q2d( stream->time_base );
-                                                       else
-                                                               audio_pts = (double)stream->pts.val * av_q2d( stream->time_base );
+                                                       audio_pts = (double)stream->pts.val * av_q2d( stream->time_base );
                                                }
                                        }
                                }