I'm trying to open an existing Mp3 file via Android NDK, but it won't open.

Java

```
private static String FILENAME = "/mnt/sdcard/My Audios/Doomsday.mp3";

```

C

```
if ((res=avformat_open_input(&pFormatCtx, path, NULL, NULL)) < 0) {
    __android_log_print(ANDROID_LOG_DEBUG, DEBUG_TAG, "file name: %s", path);
    printf("Hello %s\n", path);
    __android_log_print(ANDROID_LOG_DEBUG, DEBUG_TAG, "cannot open input file");
    __android_log_print(ANDROID_LOG_DEBUG, DEBUG_TAG, "%d", res);
    return res; // couldn't open file
}

```

Here's the log

![error](https://i.stack.imgur.com/gttrA.png)

Definitely sure the file exists.
Thanks.