OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39f9601
)
lavc: fix wrong example code in avcodec_find_best_pix_fmt() docs
author
Matthew Einhorn
<moiein2000@gmail.com>
Wed, 17 Aug 2011 23:00:03 +0000
(
01:00
+0200)
committer
Stefano Sabatini
<stefano.sabatini-lala@poste.it>
Wed, 17 Aug 2011 23:02:34 +0000
(
01:02
+0200)
A pix_fmt_mask is obtained by bitwise or-ing two pixel format bits,
rather than doing a logical or.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
libavcodec/avcodec.h
patch
|
blob
|
history
diff --git
a/libavcodec/avcodec.h
b/libavcodec/avcodec.h
index
b0f3fcb
..
b1773a3
100644
(file)
--- a/
libavcodec/avcodec.h
+++ b/
libavcodec/avcodec.h
@@
-3503,7
+3503,7
@@
int avcodec_get_pix_fmt_loss(enum PixelFormat dst_pix_fmt, enum PixelFormat src_
*
* @code
* src_pix_fmt = PIX_FMT_YUV420P;
- * pix_fmt_mask = (1 << PIX_FMT_YUV422P) |
|
(1 << PIX_FMT_RGB24);
+ * pix_fmt_mask = (1 << PIX_FMT_YUV422P) | (1 << PIX_FMT_RGB24);
* dst_pix_fmt = avcodec_find_best_pix_fmt(pix_fmt_mask, src_pix_fmt, alpha, &loss);
* @endcode
*