Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-10 23:00:30 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-06-13 03:14:26 +0300
commitb8ba2d3915b3e74990c73b2671290d7ad312513e (patch)
tree0eba9d4227c04fadf29461c34c03cd67bf091982 /doc
parenta75d22445ecb7adbe3fb8f705cb4fd9aa0d6b5ee (diff)
examples/decoding_encoding: Use the AVFrame width/height for processing images after decoding
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>
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/decoding_encoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/decoding_encoding.c b/doc/examples/decoding_encoding.c
index 80da66431b..f6643f67ef 100644
--- 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) {