Skip to content

Commit a7d7952

Browse files
committed
Updated
1 parent fec27b3 commit a7d7952

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

etc/docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ COPY . .
1212
RUN set -x \
1313
&& apt update -y \
1414
&& apt install -y ca-certificates lsb-release \
15-
&& echo "deb https://www.deb-multimedia.org $(lsb_release -sc) main non-free" >> /etc/apt/sources.list \
15+
&& echo "deb https://www.deb-multimedia.org $(lsb_release -sc) main" >> /etc/apt/sources.list \
1616
&& apt update -y -oAcquire::AllowInsecureRepositories=true \
1717
&& apt install -y --force-yes deb-multimedia-keyring \
1818
&& apt install -y --allow-unauthenticated libavcodec-dev libavdevice-dev libavfilter-dev libavutil-dev libswscale-dev libswresample-dev
@@ -29,7 +29,7 @@ ARG SOURCE
2929
RUN set -x \
3030
&& apt update -y \
3131
&& apt install -y ca-certificates lsb-release \
32-
&& echo "deb https://www.deb-multimedia.org $(lsb_release -sc) main non-free" >> /etc/apt/sources.list \
32+
&& echo "deb https://www.deb-multimedia.org $(lsb_release -sc) main" >> /etc/apt/sources.list \
3333
&& apt update -y -oAcquire::AllowInsecureRepositories=true \
3434
&& apt install -y --force-yes deb-multimedia-keyring \
3535
&& apt install -y --allow-unauthenticated ffmpeg

sys/ffmpeg61/avcodec.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ type jsonAVCodecParameters struct {
297297
SampleAspectRatio AVRational `json:"sample_aspect_ratio,omitempty"`
298298
SampleRate int `json:"sample_rate,omitempty"`
299299
FrameSize int `json:"frame_size,omitempty"`
300-
Framerate AVRational `json:"framerate,omitempty"`
301300
}
302301

303302
func (ctx *AVCodecParameters) MarshalJSON() ([]byte, error) {
@@ -312,14 +311,9 @@ func (ctx *AVCodecParameters) MarshalJSON() ([]byte, error) {
312311
SampleAspectRatio: (AVRational)(ctx.sample_aspect_ratio),
313312
SampleRate: int(ctx.sample_rate),
314313
FrameSize: int(ctx.frame_size),
315-
Framerate: (AVRational)(ctx.framerate),
316314
})
317315
}
318316

319-
func (ctx *AVCodecParameters) Format() int {
320-
return int(ctx.format)
321-
}
322-
323317
func (ctx *AVCodecParameters) CodecType() AVMediaType {
324318
return AVMediaType(ctx.codec_type)
325319
}
@@ -336,6 +330,10 @@ func (ctx *AVCodecParameters) SetCodecTag(tag uint32) {
336330
ctx.codec_tag = C.uint32_t(tag)
337331
}
338332

333+
func (ctx *AVCodecParameters) Format() int {
334+
return int(ctx.format)
335+
}
336+
339337
////////////////////////////////////////////////////////////////////////////////
340338
// AVCodec
341339

0 commit comments

Comments
 (0)