Cuda video encoder output frame size cuda encoder h264

I am trying the “C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.0\C\src\cudaEncode” sample , and the encoding works fine for the default config file “704x480-h264” with the plush video.
But the other config files (720x480-h264 for example) don’t work and don’t seem to be correct because the input size is different than the actual video in the sample !! (i tested with other videos as well … no luck )

I just want to be able to change the output size, i might be doing something stupidly wrong, but just want to check if it’s already working ? did someone try the other config files , or changing the output frame size on general using this sample ?

thanks in advance

to be precise : sometimes the encoder crashes with an access violation , sometimes it encodes but the result is messed up …

Anyone please …
did anyone use this encoder with an output frame size different from the input frame size ??