void-packages/srcpkgs/freshplayerplugin/patches/ffmpeg4.patch
Đoàn Trần Công Danh be5369a0cb srcpkgs/f*: convert patches to -Np1
* fpc is kept at -Np0

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

16 lines
606 B
Diff

--- a/src/ppb_video_decoder.c.orig 2018-05-03 22:08:33.026677145 +0200
+++ b/src/ppb_video_decoder.c 2018-05-03 22:09:26.176206079 +0200
@@ -542,9 +542,9 @@
goto err;
}
- if (vd->avcodec->capabilities & CODEC_CAP_TRUNCATED) {
- trace_info("%s, codec have CODEC_CAP_TRUNCATED\n", __func__);
- vd->avctx->flags |= CODEC_FLAG_TRUNCATED;
+ if (vd->avcodec->capabilities & AV_CODEC_CAP_TRUNCATED) {
+ trace_info("%s, codec have AV_CODEC_CAP_TRUNCATED\n", __func__);
+ vd->avctx->flags |= AV_CODEC_FLAG_TRUNCATED;
}
vd->avctx->opaque = vd;