From 0ffcfaac72ddade7ae3e1d550a0dc60f1124d39a Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 20 Mar 2013 11:10:04 +0100 Subject: [PATCH] Lavc: change subsample option name --- src/video_compress/libavcodec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video_compress/libavcodec.c b/src/video_compress/libavcodec.c index 703daa2b7..94a214919 100644 --- a/src/video_compress/libavcodec.c +++ b/src/video_compress/libavcodec.c @@ -167,12 +167,12 @@ void * libavcodec_compress_init(char * fmt) *end_ptr); return NULL; } - } else if(strncasecmp("sampling=", item, strlen("sampling=")) == 0) { - char *subsample_str = item + strlen("sampling="); + } else if(strncasecmp("subsampling=", item, strlen("subsampling=")) == 0) { + char *subsample_str = item + strlen("subsampling="); s->requested_subsampling = atoi(subsample_str); if(s->requested_subsampling != 422 && s->requested_subsampling != 420) { - fprintf(stderr, "[lavc] Supported sampling is only 422 or 420.\n"); + fprintf(stderr, "[lavc] Supported subsampling is only 422 or 420.\n"); free(s); return NULL; }