avdec: handle_frame should always unref the input frame
Unref the input frame in all cases. Previously it was only unreffed when the frame was used for output. When we produce an output frame, take an extra ref because the frame is now freed elsewhere.
Showing with 6 additions and 4 deletions