]> granicus.if.org Git - handbrake/commitdiff
sync: set start and stop when resampling audio
authorJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 18 May 2016 15:19:20 +0000 (09:19 -0600)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 18 May 2016 15:19:20 +0000 (09:19 -0600)
It's not strictly necessary because it gets done elsewhere as well.  But
putting it here makes the code more understandable.

libhb/sync.c

index 288b6434d48427b72d79398fec179c3f35653a95..456fc2094642df4f782047a4a861a21e14b13354 100644 (file)
@@ -2314,6 +2314,8 @@ static hb_buffer_t * FilterAudioFrame( sync_stream_t * stream,
             }
             buf->s.duration = 90000. * stream->audio.src.pkt.output_frames_gen /
                               audio->config.out.samplerate;
+            buf->s.start = stream->next_pts;
+            buf->s.stop = stream->next_pts + buf->s.duration;
         }
         if (audio->config.out.gain > 0.0)
         {