[avfdec] Fix undersized frame handling.

As the known issues doc says, this could be done better, but for now it
works.
Use actual filename instead of argv[]

If you had any weird error messages concerning bad files, they should be
fixed now :) .