git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a75d224
)
examples/decoding_encoding: Use the AVFrame width/height for processing images after...
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 10 Jun 2015 20:00:30 +0000
(22:00 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 13 Jun 2015 00:14:26 +0000
(
02:14
+0200)
This is what FFmpeg / FFplay do and it is more robust
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
doc/examples/decoding_encoding.c
patch
|
blob
|
history
diff --git
a/doc/examples/decoding_encoding.c
b/doc/examples/decoding_encoding.c
index
80da664
..
f6643f6
100644
(file)
--- a/
doc/examples/decoding_encoding.c
+++ b/
doc/examples/decoding_encoding.c
@@
-521,7
+521,7
@@
static int decode_write_frame(const char *outfilename, AVCodecContext *avctx,
/* the picture is allocated by the decoder, no need to free it */
snprintf(buf, sizeof(buf), outfilename, *frame_count);
pgm_save(frame->data[0], frame->linesize[0],
-
avctx->width, avctx
->height, buf);
+
frame->width, frame
->height, buf);
(*frame_count)++;
}
if (pkt->data) {