Fix tile decoding input parameter control
This commit fixes the tile decoding parameter control for ext-tile.
Bug=aom:122
Change-Id: I2cb702cee8d1e8083915c3a2d15c68927414b91c
diff --git a/aomdec.c b/aomdec.c
index 402c4e2..026cb95 100644
--- a/aomdec.c
+++ b/aomdec.c
@@ -721,18 +721,16 @@
if (!quiet) fprintf(stderr, "%s\n", decoder.name);
#if CONFIG_AV1_DECODER && CONFIG_EXT_TILE
- if (strncmp(decoder.name, "WebM Project AV1", 17) == 0) {
- if (aom_codec_control(&decoder, AV1_SET_DECODE_TILE_ROW, tile_row)) {
- fprintf(stderr, "Failed to set decode_tile_row: %s\n",
- aom_codec_error(&decoder));
- goto fail;
- }
+ if (aom_codec_control(&decoder, AV1_SET_DECODE_TILE_ROW, tile_row)) {
+ fprintf(stderr, "Failed to set decode_tile_row: %s\n",
+ aom_codec_error(&decoder));
+ goto fail;
+ }
- if (aom_codec_control(&decoder, AV1_SET_DECODE_TILE_COL, tile_col)) {
- fprintf(stderr, "Failed to set decode_tile_col: %s\n",
- aom_codec_error(&decoder));
- goto fail;
- }
+ if (aom_codec_control(&decoder, AV1_SET_DECODE_TILE_COL, tile_col)) {
+ fprintf(stderr, "Failed to set decode_tile_col: %s\n",
+ aom_codec_error(&decoder));
+ goto fail;
}
#endif