Skip to content

Commit

Permalink
jvdec: set channel layout
Browse files Browse the repository at this point in the history
  • Loading branch information
justinruggles committed Nov 12, 2012
1 parent 4371131 commit ef1b23a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libavformat/jvdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* @author Peter Ross <[email protected]>
*/

#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"
Expand Down Expand Up @@ -91,6 +92,7 @@ static int read_header(AVFormatContext *s)
ast->codec->codec_tag = 0; /* no fourcc */
ast->codec->sample_rate = avio_rl16(pb);
ast->codec->channels = 1;
ast->codec->channel_layout = AV_CH_LAYOUT_MONO;
avpriv_set_pts_info(ast, 64, 1, ast->codec->sample_rate);

avio_skip(pb, 10);
Expand Down

0 comments on commit ef1b23a

Please sign in to comment.