Skip to content

Commit 811ebe7

Browse files
committed
Use existing constant for media.Sample Duration
No behavior change, but makes code easier to follow Resolves pion#119
1 parent 201a4f0 commit 811ebe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

play-from-disk-h264/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func main() { //nolint
110110
panic(h264Err)
111111
}
112112

113-
if h264Err = videoTrack.WriteSample(media.Sample{Data: nal.Data, Duration: time.Second}); h264Err != nil {
113+
if h264Err = videoTrack.WriteSample(media.Sample{Data: nal.Data, Duration: h264FrameDuration}); h264Err != nil {
114114
panic(h264Err)
115115
}
116116
}

0 commit comments

Comments
 (0)